bmp pipe needs the bmp parser which is not bug free and should thus not be 
favored
over the bmp image2 demuxer

Signed-off-by: Michael Niedermayer <michae...@gmx.at>
---
 libavformat/img2dec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index 8bbcddc..9f48c5d 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -574,7 +574,7 @@ static int bmp_probe(AVProbeData *p)
         return 0;
 
     if (!AV_RN32(b + 6)) {
-        return AVPROBE_SCORE_EXTENSION + 1;
+        return AVPROBE_SCORE_EXTENSION - 1; // lower than extension as bmp 
pipe has bugs
     } else {
         return AVPROBE_SCORE_EXTENSION / 4;
     }
-- 
1.7.9.5

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to