From: Michael Niedermayer Date: Fri, 8 Nov 2013 19:10:33 +0000 (+0100) Subject: avformat/icodec: reduce score returned on probing X-Git-Tag: n2.2-rc1~2153 X-Git-Url: http://git.videolan.org/?p=ffmpeg.git;a=commitdiff_plain;h=4f0e85517f5dcdba40f7b299b61997ecfc702440 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 --- diff --git a/libavformat/icodec.c b/libavformat/icodec.c index fa308da722..4c038e9614 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; }