[FFmpeg-cvslog] eatqi: use av_fast_padded_malloc()

Reimar Döffinger git at videolan.org
Thu Feb 2 02:46:28 CET 2012


ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Mon Jan 30 18:34:10 2012 -0500| [2f4b9021a18312685f93768688e5e27a8ccd70a3] | committer: Justin Ruggles

eatqi: use av_fast_padded_malloc()

Signed-off-by: Justin Ruggles <justin.ruggles at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2f4b9021a18312685f93768688e5e27a8ccd70a3
---

 libavcodec/eatqi.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libavcodec/eatqi.c b/libavcodec/eatqi.c
index aaf704b..179b84d 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);



More information about the ffmpeg-cvslog mailing list