[FFmpeg-cvslog] avcodec/mdec: use av_fast_padded_malloc()

Paul B Mahol git at videolan.org
Wed Oct 30 12:41:51 CET 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Oct 29 14:30:23 2013 +0000| [c783bec6dc570d7962f6f485b4966c23642c4e32] | committer: Paul B Mahol

avcodec/mdec: use av_fast_padded_malloc()

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavcodec/mdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c
index ea47822..43ed970 100644
--- a/libavcodec/mdec.c
+++ b/libavcodec/mdec.c
@@ -170,7 +170,7 @@ static int decode_frame(AVCodecContext *avctx,
     frame.f->pict_type = AV_PICTURE_TYPE_I;
     frame.f->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);
     for (i = 0; i < buf_size; i += 2) {



More information about the ffmpeg-cvslog mailing list