Commit 6c9db402 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec_encode_audio2: add missing padding to realloc()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent afbf9ed0
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment