[FFmpeg-devel] [PATCH]Fix possible wv / flic misdetection

Carl Eugen Hoyos cehoyos at ag.or.at
Tue May 14 22:31:07 CEST 2013


Hi!

Attached patch is a possible fix for ticket #2567, the true problem is imo 
that both the wv and the flic probe function return too high scores.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/flic.c b/libavformat/flic.c
index 8d49116..2835cf5 100644
--- a/libavformat/flic.c
+++ b/libavformat/flic.c
@@ -80,7 +80,7 @@ static int flic_probe(AVProbeData *p)
         return 0;
 
 
-    return AVPROBE_SCORE_MAX;
+    return AVPROBE_SCORE_MAX - 1;
 }
 
 static int flic_read_header(AVFormatContext *s)


More information about the ffmpeg-devel mailing list