changeset 7006:48cfbc65d688 libavcodec

Fix reading an element after the array. Fixes CID27 RUN2
author michael
date Fri, 06 Jun 2008 00:32:31 +0000
parents 6e374f47da64
children fa39bba4c8a4
files truemotion1.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/truemotion1.c	Thu Jun 05 16:15:44 2008 +0000
+++ b/truemotion1.c	Fri Jun 06 00:32:31 2008 +0000
@@ -393,7 +393,7 @@
         }
     }
 
-    if (header.compression > 17) {
+    if (header.compression >= 17) {
         av_log(s->avctx, AV_LOG_ERROR, "invalid compression type (%d)\n", header.compression);
         return -1;
     }