[FFmpeg-cvslog] r19857 - trunk/libavformat/ncdec.c

michael subversion
Tue Sep 15 15:28:14 CEST 2009


Author: michael
Date: Tue Sep 15 15:28:14 2009
New Revision: 19857

Log:
Do not return values above AVPROBE_SCORE_MAX from probe().

Modified:
   trunk/libavformat/ncdec.c

Modified: trunk/libavformat/ncdec.c
==============================================================================
--- trunk/libavformat/ncdec.c	Tue Sep 15 15:27:13 2009	(r19856)
+++ trunk/libavformat/ncdec.c	Tue Sep 15 15:28:14 2009	(r19857)
@@ -35,7 +35,7 @@ static int nc_probe(AVProbeData *probe_p
     size = AV_RL16(probe_packet->buf + 5);
 
     if (size + 20 > probe_packet->buf_size)
-        return 3*AVPROBE_SCORE_MAX/2;
+        return AVPROBE_SCORE_MAX/4;
 
     if (AV_RB32(probe_packet->buf+16+size) == NC_VIDEO_FLAG)
         return AVPROBE_SCORE_MAX;



More information about the ffmpeg-cvslog mailing list