h263dec: Force padding bug workaround for H.263.
authorJosh Allmann <joshua.allmann@gmail.com>
Fri, 3 Oct 2014 16:42:25 +0000 (09:42 -0700)
committerAnton Khirnov <anton@khirnov.net>
Tue, 7 Oct 2014 07:30:32 +0000 (07:30 +0000)
Fixes decoding of http://samples.mplayerhq.hu/V-codecs/h263/h263-raw/messenger.h263

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/h263dec.c

index cfb77b0..a6252f2 100644 (file)
@@ -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;