diff options
author | Alex Converse <alex.converse@gmail.com> | 2012-01-27 15:50:24 -0800 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2012-01-30 10:19:01 -0800 |
commit | dfa37fe8a3d9243dd339d94befa065e2c90b29e6 (patch) | |
tree | 85b58f46c402a1affa3e00968c5b9f76606b8fa8 /libavcodec/mpeg12data.c | |
parent | a02e8df973f5478ec82f4c507f5b5b191a5ecb6b (diff) | |
download | ffmpeg-dfa37fe8a3d9243dd339d94befa065e2c90b29e6.tar.gz |
mpeg12: Pad framerate tab to 16 entries.
There are many places where we read an unchecked 4-bit index into it.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Diffstat (limited to 'libavcodec/mpeg12data.c')
-rw-r--r-- | libavcodec/mpeg12data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12data.c b/libavcodec/mpeg12data.c index 5ac8c243a5..a0dd6e5784 100644 --- a/libavcodec/mpeg12data.c +++ b/libavcodec/mpeg12data.c @@ -305,7 +305,7 @@ const uint8_t ff_mpeg12_mbMotionVectorTable[17][2] = { { 0xc, 10 }, }; -const AVRational avpriv_frame_rate_tab[] = { +const AVRational avpriv_frame_rate_tab[16] = { { 0, 0}, {24000, 1001}, { 24, 1}, |