Commit 9ccbc672 authored by Michael Niedermayer's avatar Michael Niedermayer

qscale==0 is invalid

Originally committed as revision 11539 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 800a5a19
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment