diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 02:17:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-22 19:03:17 +0100 |
commit | 6c9db40205d5c0cf40c13bf34c0a1c39a310de50 (patch) | |
tree | 1a55db29d7ad8281af05a41557b78fe2e1e9db6f /libavcodec/utils.c | |
parent | afbf9ed0d2b957beedf4145e62376cecab792664 (diff) | |
download | ffmpeg-6c9db40205d5c0cf40c13bf34c0a1c39a310de50.tar.gz |
avcodec_encode_audio2: add missing padding to realloc()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index e61ace6e75..b5570aac6e 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1071,7 +1071,7 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx, } if (!ret) { if (!user_packet && avpkt->data) { - uint8_t *new_data = av_realloc(avpkt->data, avpkt->size); + uint8_t *new_data = av_realloc(avpkt->data, avpkt->size + FF_INPUT_BUFFER_PADDING_SIZE); if (new_data) avpkt->data = new_data; } |