[FFmpeg-devel] [PATCH for 2.8 v1] avformat/tty: use correct read_probe API
Olaf Hering
olaf at aepfle.de
Sun Sep 1 18:12:48 EEST 2024
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 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 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;
More information about the ffmpeg-devel
mailing list