summaryrefslogtreecommitdiff
path: root/libavcodec/eamad.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-12-02 22:09:36 +0100
committerJanne Grunau <janne-libav@jannau.net>2012-12-05 00:02:44 +0100
commit42060c703011d742661c3f5df66b6f30358acd96 (patch)
treed5eb8c3f92a0df0095791fc27ce47a769aaf2bfe /libavcodec/eamad.c
parent54c7fe6d68444cc3c5d4fdda2f2126ed79eac855 (diff)
eamad: initialize padding of bitstream_buf through av_fast_padded_malloc()
Diffstat (limited to 'libavcodec/eamad.c')
-rw-r--r--libavcodec/eamad.c3
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);