]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/h263dec: Document padding_bug_score heuristic used for wrong stuffing
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 3 May 2018 19:41:40 +0000 (21:41 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 4 May 2018 00:20:10 +0000 (02:20 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h263dec.c

index eae29fa438e3b6b5adadbbe5d94363e2303ef7ee..c082af1c5220c524b6dbe85c7542b3d10347fd10 100644 (file)
@@ -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              &&