diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-08-18 20:41:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-08-18 23:36:18 +0200 |
commit | cc13bc8c4f0f4afa30d0b94c3f3a369ccd2aaf0b (patch) | |
tree | cc951b2cf772d43ea307d0fb7bced2a8325a1763 /libavcodec/h264dec.h | |
parent | e2a39b103e5917780744fed6fd4336cf65a220f4 (diff) | |
download | ffmpeg-cc13bc8c4f0f4afa30d0b94c3f3a369ccd2aaf0b.tar.gz |
avcodec/h2645: Fix NAL unit padding
The parser changes have lost the support for the needed padding, this adds it back
Fixes out of array reads
Fixes: 03ea21d271abc8acf428d42ace51d8b4/asan_heap-oob_3358eef_5692_16f0cc01ab5225e9ce591659e5c20e35.mkv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/h264dec.h')
-rw-r--r-- | libavcodec/h264dec.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h index 3034a933c2..c8b7e663b3 100644 --- a/libavcodec/h264dec.h +++ b/libavcodec/h264dec.h @@ -55,8 +55,6 @@ #define MAX_DELAYED_PIC_COUNT 16 -#define MAX_MBPAIR_SIZE (256*1024) // a tighter bound could be calculated if someone cares about a few bytes - /* Compiling in interlaced support reduces the speed * of progressive decoding by about 2%. */ #define ALLOW_INTERLACE |