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

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


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Oct 30 09:07:43 2013 +0000| [8e609eb475fec75bcb967d5efde2077dfe03b496] | committer: Paul B Mahol

avcodec/utvideoenc: 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=8e609eb475fec75bcb967d5efde2077dfe03b496
---

 libavcodec/utvideoenc.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c
index c4885a5..c47ccd0 100644
--- a/libavcodec/utvideoenc.c
+++ b/libavcodec/utvideoenc.c
@@ -513,8 +513,7 @@ static int utvideo_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
 
     bytestream2_init_writer(&pb, dst, pkt->size);
 
-    av_fast_malloc(&c->slice_bits, &c->slice_bits_size,
-                   width * height + FF_INPUT_BUFFER_PADDING_SIZE);
+    av_fast_padded_malloc(&c->slice_bits, &c->slice_bits_size, width * height);
 
     if (!c->slice_bits) {
         av_log(avctx, AV_LOG_ERROR, "Cannot allocate temporary buffer 2.\n");



More information about the ffmpeg-cvslog mailing list