ffmpeg | branch: master | Carl Eugen Hoyos <ceho...@ag.or.at> | Fri Jan 27 
08:31:07 2017 +0100| [fca30832828af70f13de81c11f5346525c9f4b91] | committer: 
Carl Eugen Hoyos

lavf/img2dec: Reduce the probe score for incomplete jpgs.

Ensures that probing doesn't finish prematurely for small files.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fca30832828af70f13de81c11f5346525c9f4b91
---

 libavformat/img2dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index 321189f..c3c2cf3 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -756,7 +756,7 @@ static int jpeg_probe(AVProbeData *p)
     if (state == EOI)
         return AVPROBE_SCORE_EXTENSION + 1;
     if (state == SOS)
-        return AVPROBE_SCORE_EXTENSION / 2 + 1;
+        return AVPROBE_SCORE_EXTENSION / 2;
     return AVPROBE_SCORE_EXTENSION / 8;
 }
 

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

Reply via email to