diff mbox series

[FFmpeg-devel,for,2.8,v1] avformat/tty: use correct read_probe API

Message ID 20240901151308.5414-1-olaf@aepfle.de
State New
Headers show
Series [FFmpeg-devel,for,2.8,v1] avformat/tty: use correct read_probe API | expand

Checks

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

Commit Message

Olaf Hering Sept. 1, 2024, 3:12 p.m. UTC
The expected prototype for read_probe in this branch is
"int (*)(AVProbeData *)". GCC 14 finally rejects this by default.

Fixes e5d1808aa5 ("avformat/tty: add probe function")

Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
 libavformat/tty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavformat/tty.c b/libavformat/tty.c
index 0a2f110f30..9e81aff266 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;