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
1 changed files with 2 additions and 1 deletions

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);