[FFmpeg-cvslog] asv1: 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:33:32 2012 -0500| [00db4d4ad5d2313b18bda6bb6eeabb99db8f9c72] | committer: Justin Ruggles

asv1: 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=00db4d4ad5d2313b18bda6bb6eeabb99db8f9c72
---

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

diff --git a/libavcodec/asv1.c b/libavcodec/asv1.c
index 8db23c0..754c1aa 100644
--- a/libavcodec/asv1.c
+++ b/libavcodec/asv1.c
@@ -408,7 +408,8 @@ static int decode_frame(AVCodecContext *avctx,
     p->pict_type= AV_PICTURE_TYPE_I;
     p->key_frame= 1;
 
-    av_fast_malloc(&a->bitstream_buffer, &a->bitstream_buffer_size, buf_size + FF_INPUT_BUFFER_PADDING_SIZE);
+    av_fast_padded_malloc(&a->bitstream_buffer, &a->bitstream_buffer_size,
+                          buf_size);
     if (!a->bitstream_buffer)
         return AVERROR(ENOMEM);
 



More information about the ffmpeg-cvslog mailing list