OSDN Git Service

mov_probe: use correct variable
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 24 Oct 2012 22:23:29 +0000 (00:23 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 24 Oct 2012 22:24:25 +0000 (00:24 +0200)
Fixes CID739867
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mov.c

index d9c509b..d7d7f21 100644 (file)
@@ -2910,7 +2910,7 @@ static int mov_probe(AVProbeData *p)
             offset = FFMAX(4, AV_RB32(p->buf+offset)) + offset;
         }
     }
-    if(tag > AVPROBE_SCORE_MAX - 50 && moov_offset != -1) {
+    if(score > AVPROBE_SCORE_MAX - 50 && moov_offset != -1) {
         /* moov atom in the header - we should make sure that this is not a
          * MOV-packed MPEG-PS */
         offset = moov_offset;