changeset 5192:ef6c4a95acb8 libavformat

Do not return values above AVPROBE_SCORE_MAX from probe().
author michael
date Tue, 15 Sep 2009 13:28:14 +0000
parents 9affc096944c
children 360f4a07ce5e
files ncdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ncdec.c	Tue Sep 15 13:27:13 2009 +0000
+++ b/ncdec.c	Tue Sep 15 13:28:14 2009 +0000
@@ -35,7 +35,7 @@
     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;