aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/truespeech.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-18 00:07:53 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-23 20:31:04 +0100
commit57a43142baeda0d38f085555121a86c906cf11ef (patch)
tree25f0ceb95c05bcb2eafac1227bd21c6f17be26d9 /libavcodec/truespeech.c
parent99905118a851cd18e36fac0b84cda34ca71183b2 (diff)
downloadffmpeg-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/truespeech.c')
0 files changed, 0 insertions, 0 deletions