1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

more tolerance for dc=0

Originally committed as revision 2716 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2004-01-21 19:14:26 +00:00
parent 20f155ed80
commit 403f10996d

View File

@ -4432,7 +4432,8 @@ static int h263_decode_block(MpegEncContext * s, DCTELEM * block,
level = get_bits(&s->gb, 8);
if((level&0x7F) == 0){
av_log(s->avctx, AV_LOG_ERROR, "illegal dc %d at %d %d\n", level, s->mb_x, s->mb_y);
return -1;
if(s->error_resilience >= FF_ER_COMPLIANT)
return -1;
}
if (level == 255)
level = 128;