Browse Source

avcodec/utvideoenc: use av_fast_padded_malloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.2-rc1
Paul B Mahol 12 years ago
parent
commit
8e609eb475
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/utvideoenc.c

+ 1
- 2
libavcodec/utvideoenc.c View File

@@ -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");


Loading…
Cancel
Save