Commit c87abb47 authored by michael's avatar michael

qscale==0 is invalid


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11539 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent acbafdba
...@@ -133,7 +133,7 @@ return -1; ...@@ -133,7 +133,7 @@ return -1;
av_log(s->avctx, AV_LOG_DEBUG, "I7:%X/\n", code); av_log(s->avctx, AV_LOG_DEBUG, "I7:%X/\n", code);
} }
s->chroma_qscale= s->qscale = get_bits(&s->gb, 5); s->chroma_qscale= s->qscale = get_bits(&s->gb, 5);
if(s->qscale < 0) if(s->qscale <= 0)
return -1; return -1;
return 0; 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