summaryrefslogtreecommitdiff
path: root/libavcodec/utvideoenc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-10-30 09:07:43 +0000
committerPaul B Mahol <onemda@gmail.com>2013-10-30 11:04:07 +0000
commit8e609eb475fec75bcb967d5efde2077dfe03b496 (patch)
tree4c0f028e608d0a523d7331c41a0a5505eecd6a6a /libavcodec/utvideoenc.c
parent82e576046c6b96576865855a3901b23c93f6317d (diff)
avcodec/utvideoenc: use av_fast_padded_malloc()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/utvideoenc.c')
-rw-r--r--libavcodec/utvideoenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/utvideoenc.c b/libavcodec/utvideoenc.c
index c4885a59b1..c47ccd06fe 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");