aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/decoding_encoding.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-22 01:15:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-07 13:40:22 +0200
commit9fc7de8d8030156cedeea0d894019fe6e3f20425 (patch)
tree4bbd32e6550dcb569e2c8bead841fc51b14fa6df /doc/examples/decoding_encoding.c
parent2958b8b86e3674b2be87abba92135b9a928e06f1 (diff)
downloadffmpeg-9fc7de8d8030156cedeea0d894019fe6e3f20425.tar.gz
avcodec: fix aac/ac3 parser bitstream buffer size
Buffers containing copies of the AAC and AC3 header bits were not padded before parsing, violating init_get_bits() buffer padding requirement, leading to potential buffer read overflows. This change adds FF_INPUT_BUFFER_PADDING_SIZE bytes to the bit buffer for parsing the header in each of aac_parser.c and ac3_parser.c. Based on patch by: Matt Wolenetz <wolenetz@chromium.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit fccd85b9f30525f88692f53134eba41f1f2d90db) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/examples/decoding_encoding.c')
0 files changed, 0 insertions, 0 deletions