[FFmpeg-cvslog] r13668 - trunk/libavcodec/truemotion1.c

michael subversion
Fri Jun 6 02:32:31 CEST 2008


Author: michael
Date: Fri Jun  6 02:32:31 2008
New Revision: 13668

Log:
Fix reading an element after the array.
Fixes CID27 RUN2


Modified:
   trunk/libavcodec/truemotion1.c

Modified: trunk/libavcodec/truemotion1.c
==============================================================================
--- trunk/libavcodec/truemotion1.c	(original)
+++ trunk/libavcodec/truemotion1.c	Fri Jun  6 02:32:31 2008
@@ -393,7 +393,7 @@ static int truemotion1_decode_header(Tru
         }
     }
 
-    if (header.compression > 17) {
+    if (header.compression >= 17) {
         av_log(s->avctx, AV_LOG_ERROR, "invalid compression type (%d)\n", header.compression);
         return -1;
     }




More information about the ffmpeg-cvslog mailing list