Commit 2f4b9021 authored by Reimar Döffinger's avatar Reimar Döffinger Committed by Justin Ruggles

eatqi: use av_fast_padded_malloc()

Signed-off-by: 's avatarJustin Ruggles <justin.ruggles@gmail.com>
parent 00db4d4a
......@@ -124,7 +124,8 @@ static int tqi_decode_frame(AVCodecContext *avctx,
return -1;
}
av_fast_malloc(&t->bitstream_buf, &t->bitstream_buf_size, (buf_end-buf) + FF_INPUT_BUFFER_PADDING_SIZE);
av_fast_padded_malloc(&t->bitstream_buf, &t->bitstream_buf_size,
buf_end - buf);
if (!t->bitstream_buf)
return AVERROR(ENOMEM);
s->dsp.bswap_buf(t->bitstream_buf, (const uint32_t*)buf, (buf_end-buf)/4);
......
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