[FFmpeg-cvslog] avformat/icodec: reduce score returned on probing

Michael Niedermayer git at videolan.org
Fri Nov 8 20:23:45 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov  8 20:10:33 2013 +0100| [4f0e85517f5dcdba40f7b299b61997ecfc702440] | committer: Michael Niedermayer

avformat/icodec: reduce score returned on probing

The ico probe function is pretty weak just checking a few bytes for being 0, 1 or not 0

Fixes probetest failure

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavformat/icodec.c b/libavformat/icodec.c
index fa308da..4c038e9 100644
--- a/libavformat/icodec.c
+++ b/libavformat/icodec.c
@@ -45,7 +45,7 @@ typedef struct {
 static int probe(AVProbeData *p)
 {
     if (AV_RL16(p->buf) == 0 && AV_RL16(p->buf + 2) == 1 && AV_RL16(p->buf + 4))
-        return AVPROBE_SCORE_MAX / 3;
+        return AVPROBE_SCORE_MAX / 4;
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list