[FFmpeg-cvslog] avcodec_encode_audio2: add missing padding to realloc()
Michael Niedermayer
git at videolan.org
Thu Mar 22 19:10:22 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Mar 22 02:17:32 2012 +0100| [6c9db40205d5c0cf40c13bf34c0a1c39a310de50] | committer: Michael Niedermayer
avcodec_encode_audio2: add missing padding to realloc()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6c9db40205d5c0cf40c13bf34c0a1c39a310de50
---
libavcodec/utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index e61ace6..b5570aa 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;
}
More information about the ffmpeg-cvslog
mailing list