aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-01-16 12:42:52 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-01-16 12:42:52 +0000
commit9ccbc672aa341d3cb4c4159e1e746ef0693ee138 (patch)
treeddce18afaa13fe65cd727b6d26275cb456ea2f91 /libavcodec
parent800a5a1905409a87d97619b79122d94b32fa3ee1 (diff)
downloadffmpeg-9ccbc672aa341d3cb4c4159e1e746ef0693ee138.tar.gz
qscale==0 is invalid
Originally committed as revision 11539 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/wmv2dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmv2dec.c b/libavcodec/wmv2dec.c
index 181e1c6d4b..842234bfe1 100644
--- a/libavcodec/wmv2dec.c
+++ b/libavcodec/wmv2dec.c
@@ -133,7 +133,7 @@ return -1;
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;