[FFmpeg-devel] [PATCH for 3.4 v1] avformat/tty: use correct read_probe API

Olaf Hering olaf at aepfle.de
Sun Sep 1 18:01:00 EEST 2024


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 at aepfle.de>
---
 libavformat/tty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 


More information about the ffmpeg-devel mailing list