diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-18 00:07:53 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-23 20:31:04 +0100 |
commit | 57a43142baeda0d38f085555121a86c906cf11ef (patch) | |
tree | 25f0ceb95c05bcb2eafac1227bd21c6f17be26d9 /libavcodec/huffman.h | |
parent | 99905118a851cd18e36fac0b84cda34ca71183b2 (diff) | |
download | ffmpeg-57a43142baeda0d38f085555121a86c906cf11ef.tar.gz |
avcodec/utils: fix sizeof(AVFrame) dependence in avcodec_encode_audio2()
This is a bit tricky, we allocate a correctly sized AVFrame but then only
copy the compile time AVFrame size, this is to ensure that user applications
which do not use the correct av frame API dont end with out of array reads.
Note, applications using the correct API have set extended_data and the
changed code will never be executed for them.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 8ab80707841a73ca7708e1e1aa97f3513fff3d35)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/huffman.h')
0 files changed, 0 insertions, 0 deletions