[FFmpeg-cvslog] h263dec: Force padding bug workaround for H.263.

Josh Allmann git at videolan.org
Tue Oct 7 13:03:25 CEST 2014


ffmpeg | branch: master | Josh Allmann <joshua.allmann at gmail.com> | Fri Oct  3 09:42:25 2014 -0700| [9a03c2323593173a201cb75edd1b49887cf811ed] | committer: Anton Khirnov

h263dec: Force padding bug workaround for H.263.

Fixes decoding of http://samples.mplayerhq.hu/V-codecs/h263/h263-raw/messenger.h263

Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

 libavcodec/h263dec.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index cfb77b0..a6252f2 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -316,7 +316,8 @@ static int decode_slice(MpegEncContext *s)
     }
 
     if (s->workaround_bugs & FF_BUG_AUTODETECT) {
-        if (s->padding_bug_score > -2 && !s->data_partitioning)
+        if (s->codec_id == AV_CODEC_ID_H263 ||
+            (s->padding_bug_score > -2 && !s->data_partitioning))
             s->workaround_bugs |= FF_BUG_NO_PADDING;
         else
             s->workaround_bugs &= ~FF_BUG_NO_PADDING;



More information about the ffmpeg-cvslog mailing list