Commit 42060c70 authored by Janne Grunau's avatar Janne Grunau

eamad: initialize padding of bitstream_buf through av_fast_padded_malloc()

parent 54c7fe6d
...@@ -264,7 +264,8 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -264,7 +264,8 @@ static int decode_frame(AVCodecContext *avctx,
} }
} }
av_fast_malloc(&s->bitstream_buf, &s->bitstream_buf_size, (buf_end-buf) + FF_INPUT_BUFFER_PADDING_SIZE); av_fast_padded_malloc(&s->bitstream_buf, &s->bitstream_buf_size,
buf_end - buf);
if (!s->bitstream_buf) if (!s->bitstream_buf)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
s->dsp.bswap16_buf(s->bitstream_buf, (const uint16_t*)buf, (buf_end-buf)/2); s->dsp.bswap16_buf(s->bitstream_buf, (const uint16_t*)buf, (buf_end-buf)/2);
......
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