diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-01-30 18:34:10 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-01 14:37:47 -0500 |
commit | 2f4b9021a18312685f93768688e5e27a8ccd70a3 (patch) | |
tree | 0bed64c667d8960d4a9e9d2ea1f961fe22ca5b00 | |
parent | 00db4d4ad5d2313b18bda6bb6eeabb99db8f9c72 (diff) | |
download | ffmpeg-2f4b9021a18312685f93768688e5e27a8ccd70a3.tar.gz |
eatqi: use av_fast_padded_malloc()
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
-rw-r--r-- | libavcodec/eatqi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/eatqi.c b/libavcodec/eatqi.c index aaf704b41a..179b84d6a0 100644 --- a/libavcodec/eatqi.c +++ b/libavcodec/eatqi.c @@ -124,7 +124,8 @@ static int tqi_decode_frame(AVCodecContext *avctx, return -1; } - av_fast_malloc(&t->bitstream_buf, &t->bitstream_buf_size, (buf_end-buf) + FF_INPUT_BUFFER_PADDING_SIZE); + av_fast_padded_malloc(&t->bitstream_buf, &t->bitstream_buf_size, + buf_end - buf); if (!t->bitstream_buf) return AVERROR(ENOMEM); s->dsp.bswap_buf(t->bitstream_buf, (const uint32_t*)buf, (buf_end-buf)/4); |