mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avcodec_encode_audio2: add missing padding to realloc()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
afbf9ed0d2
commit
6c9db40205
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user