1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

eamad: initialize padding of bitstream_buf through av_fast_padded_malloc()

This commit is contained in:
Janne Grunau 2012-12-02 22:09:36 +01:00
parent 54c7fe6d68
commit 42060c7030

View File

@ -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)
return AVERROR(ENOMEM);
s->dsp.bswap16_buf(s->bitstream_buf, (const uint16_t*)buf, (buf_end-buf)/2);