1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

qscale==0 is invalid

Originally committed as revision 11539 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-01-16 12:42:52 +00:00
parent 800a5a1905
commit 9ccbc672aa

View File

@ -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;