[FFmpeg-cvslog] avcodec/h263dec: Document padding_bug_score heuristic used for wrong stuffing

Michael Niedermayer git at videolan.org
Fri May 4 03:21:44 EEST 2018


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu May  3 21:41:40 2018 +0200| [dc7a8f731084d7ef2eac66c5d6af71c2ec78142c] | committer: Michael Niedermayer

avcodec/h263dec: Document padding_bug_score heuristic used for wrong stuffing

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavcodec/h263dec.c | 1 +
 1 file changed, 1 insertion(+)

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              &&



More information about the ffmpeg-cvslog mailing list