diff options
author | Janne Grunau <janne-libav@jannau.net> | 2012-12-02 22:09:36 +0100 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-12-05 00:02:44 +0100 |
commit | 42060c703011d742661c3f5df66b6f30358acd96 (patch) | |
tree | d5eb8c3f92a0df0095791fc27ce47a769aaf2bfe | |
parent | 54c7fe6d68444cc3c5d4fdda2f2126ed79eac855 (diff) | |
download | ffmpeg-42060c703011d742661c3f5df66b6f30358acd96.tar.gz |
eamad: initialize padding of bitstream_buf through av_fast_padded_malloc()
-rw-r--r-- | libavcodec/eamad.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c index 9f4d85878a..cf44ae98e3 100644 --- a/libavcodec/eamad.c +++ b/libavcodec/eamad.c @@ -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); |