changeset 6149:b1bd3188bdef libavcodec

qscale==0 is invalid
author michael
date Wed, 16 Jan 2008 12:42:52 +0000
parents 84071d68a7ca
children 49a4e4d78692
files wmv2dec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wmv2dec.c	Wed Jan 16 09:02:22 2008 +0000
+++ b/wmv2dec.c	Wed Jan 16 12:42:52 2008 +0000
@@ -133,7 +133,7 @@
         av_log(s->avctx, AV_LOG_DEBUG, "I7:%X/\n", code);
     }
     s->chroma_qscale= s->qscale = get_bits(&s->gb, 5);
-    if(s->qscale < 0)
+    if(s->qscale <= 0)
        return -1;
 
     return 0;