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 <[email protected]>
---
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;
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".