diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-01-21 19:14:26 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-01-21 19:14:26 +0000 |
commit | 403f10996d68def09d4f358a311d619a6d54cff8 (patch) | |
tree | 60b2b9dd0f37e868f5844e8c4a0a47a6a587d7a4 | |
parent | 20f155ed80f42118beade21059cef19d92828748 (diff) | |
download | ffmpeg-403f10996d68def09d4f358a311d619a6d54cff8.tar.gz |
more tolerance for dc=0
Originally committed as revision 2716 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h263.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index f86c69a700..374c2d3cff 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -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; |