Commit 00db4d4a authored by Reimar Döffinger's avatar Reimar Döffinger Committed by Justin Ruggles

asv1: use av_fast_padded_malloc()

Signed-off-by: 's avatarJustin Ruggles <justin.ruggles@gmail.com>
parent 316fc744
......@@ -408,7 +408,8 @@ static int decode_frame(AVCodecContext *avctx,
p->pict_type= AV_PICTURE_TYPE_I;
p->key_frame= 1;
av_fast_malloc(&a->bitstream_buffer, &a->bitstream_buffer_size, buf_size + FF_INPUT_BUFFER_PADDING_SIZE);
av_fast_padded_malloc(&a->bitstream_buffer, &a->bitstream_buffer_size,
buf_size);
if (!a->bitstream_buffer)
return AVERROR(ENOMEM);
......
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