aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-05-03 21:41:40 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2018-05-04 02:20:10 +0200
commitdc7a8f731084d7ef2eac66c5d6af71c2ec78142c (patch)
treef4240eabcbce23695381e7fa079ac06bdda299c2 /libavcodec
parent314994051b3d10dc17ed0c8f5669cc20450cd413 (diff)
downloadffmpeg-dc7a8f731084d7ef2eac66c5d6af71c2ec78142c.tar.gz
avcodec/h263dec: Document padding_bug_score heuristic used for wrong stuffing
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h263dec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index eae29fa438..c082af1c52 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -318,6 +318,7 @@ static int decode_slice(MpegEncContext *s)
av_assert1(s->mb_x == 0 && s->mb_y == s->mb_height);
+ // Detect incorrect padding with wrong stuffing codes used by NEC N-02B
if (s->codec_id == AV_CODEC_ID_MPEG4 &&
(s->workaround_bugs & FF_BUG_AUTODETECT) &&
get_bits_left(&s->gb) >= 48 &&