[FFmpeg-devel] [PATCH] tools: fix const specifier for AVInputFormat

Josh de Kock josh at itanimul.li
Wed Apr 29 14:00:23 EEST 2020


Signed-off-by: Josh de Kock <josh at itanimul.li>
---
 tools/probetest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

 Small fix for compiler warning caused by my earlier change.

diff --git a/tools/probetest.c b/tools/probetest.c
index cfa309cabd..6f0e002b74 100644
--- a/tools/probetest.c
+++ b/tools/probetest.c
@@ -66,7 +66,7 @@ static void probe(AVProbeData *pd, int type, int p, int size)
 static void print_times(void)
 {
     int i = 0;
-    AVInputFormat *fmt = NULL;
+    const AVInputFormat *fmt = NULL;
     void *fmt_opaque = NULL;
 
     while ((fmt = av_demuxer_iterate(&fmt_opaque))) {
-- 
2.26.0



More information about the ffmpeg-devel mailing list