Message ID | 20240901150130.15752-1-olaf@aepfle.de |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,for,3.4,v1] avformat/tty: use correct read_probe API | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
yinshiyou/make_loongarch64 | warning | New warnings during build |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_x86 | warning | New warnings during build |
diff --git a/libavformat/tty.c b/libavformat/tty.c index 60f7e9f87e..4918db2eda 100644 --- a/libavformat/tty.c +++ b/libavformat/tty.c @@ -49,7 +49,7 @@ typedef struct TtyDemuxContext { AVRational framerate; /**< Set by a private option. */ } TtyDemuxContext; -static int read_probe(const AVProbeData *p) +static int read_probe(AVProbeData *p) { int cnt = 0;
The expected prototype for read_probe in this branch is "int (*)(AVProbeData *)". GCC 14 finally rejects this by default. Fixes b5873ca4f5 ("avformat/tty: add probe function") Signed-off-by: Olaf Hering <olaf@aepfle.de> --- libavformat/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)