Browse Source

avcodec/svq3: 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
268d0d6e6c
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavcodec/svq3.c

+ 1
- 2
libavcodec/svq3.c View File

@@ -1125,8 +1125,7 @@ static int svq3_decode_frame(AVCodecContext *avctx, void *data,
h->mb_x = h->mb_y = h->mb_xy = 0;

if (s->watermark_key) {
av_fast_malloc(&s->buf, &s->buf_size,
buf_size+FF_INPUT_BUFFER_PADDING_SIZE);
av_fast_padded_malloc(&s->buf, &s->buf_size, buf_size);
if (!s->buf)
return AVERROR(ENOMEM);
memcpy(s->buf, avpkt->data, buf_size);


Loading…
Cancel
Save