diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-18 00:07:53 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-18 02:03:30 +0100 |
commit | 8ab80707841a73ca7708e1e1aa97f3513fff3d35 (patch) | |
tree | 4ee837326989f9e832a153927a0e2861d062a3ac /libavfilter/vsrc_testsrc.c | |
parent | aa1f38015cb0d04a5c50a8957dd7aba79f0d8882 (diff) | |
download | ffmpeg-8ab80707841a73ca7708e1e1aa97f3513fff3d35.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>
Diffstat (limited to 'libavfilter/vsrc_testsrc.c')
0 files changed, 0 insertions, 0 deletions