qscale==0 is invalid

Originally committed as revision 11539 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 17 years ago
parent 800a5a1905
commit 9ccbc672aa
  1. 2
      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;

Loading…
Cancel
Save