eatqi: use av_fast_padded_malloc()
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 30 Jan 2012 23:34:10 +0000 (18:34 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Wed, 1 Feb 2012 19:37:47 +0000 (14:37 -0500)
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
libavcodec/eatqi.c

index aaf704b..179b84d 100644 (file)
@@ -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);