Fix mpeg-ps misdetected as m4v.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 10 Mar 2011 09:32:46 +0000 (10:32 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 3 Apr 2011 14:40:12 +0000 (16:40 +0200)
Fix issue2326

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/m4vdec.c

index 4b0154e..f830c7a 100644 (file)
@@ -45,7 +45,7 @@ static int mpeg4video_probe(AVProbeData *probe_packet)
     }
 
     if (VOP >= VISO && VOP >= VOL && VO >= VOL && VOL > 0 && res==0)
-        return AVPROBE_SCORE_MAX/2;
+        return VOP+VO > 3 ? AVPROBE_SCORE_MAX/2 : AVPROBE_SCORE_MAX/4;
     return 0;
 }