mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
fixing level overflow check for qp=1
Originally committed as revision 842 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
159d10fc2c
commit
f255af5d93
@ -3042,8 +3042,8 @@ static inline int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
|
||||
|
||||
SKIP_COUNTER(re, &s->gb, 1+12+1);
|
||||
|
||||
if(level>512 || level<-512){ //FIXME check that QP=1 is ok with this too
|
||||
fprintf(stderr, "|level| overflow in 3. esc\n");
|
||||
if(level*s->qscale>1024 || level*s->qscale<-1024){
|
||||
fprintf(stderr, "|level| overflow in 3. esc, qp=%d\n", s->qscale);
|
||||
return DECODING_AC_LOST;
|
||||
}
|
||||
#if 1
|
||||
|
Loading…
Reference in New Issue
Block a user