[FFmpeg-cvslog] h263dec: restore error concealment functionality after merge

Michael Niedermayer git at videolan.org
Tue Dec 13 01:37:08 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 13 01:25:08 2011 +0100| [376ee20614507df0e6d2004b7b0d10f72cb25167] | committer: Michael Niedermayer

h263dec: restore error concealment functionality after merge

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=376ee20614507df0e6d2004b7b0d10f72cb25167
---

 libavcodec/h263dec.c    |    2 +-
 libavcodec/ituh263dec.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 2c9385c..7a34e7f 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -310,7 +310,7 @@ static int decode_slice(MpegEncContext *s){
             max_extra+= 17;
 
         /* buggy padding but the frame should still end approximately at the bitstream end */
-        if((s->workaround_bugs&FF_BUG_NO_PADDING) && (s->err_recognition&AV_EF_BUFFER))
+        if((s->workaround_bugs&FF_BUG_NO_PADDING) && (s->err_recognition&(AV_EF_BUFFER|AV_EF_AGGRESSIVE)))
             max_extra+= 48;
         else if((s->workaround_bugs&FF_BUG_NO_PADDING))
             max_extra+= 256*256*256*64;
diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c
index c622961..bf03e1a 100644
--- a/libavcodec/ituh263dec.c
+++ b/libavcodec/ituh263dec.c
@@ -484,7 +484,7 @@ 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);
-                if(s->err_recognition & AV_EF_BITSTREAM)
+                if(s->err_recognition & (AV_EF_BITSTREAM|AV_EF_COMPLIANT))
                     return -1;
             }
             if (level == 255)



More information about the ffmpeg-cvslog mailing list