Commit 268d0d6e authored by Paul B Mahol's avatar Paul B Mahol

avcodec/svq3: use av_fast_padded_malloc()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 8e609eb4
...@@ -1125,8 +1125,7 @@ static int svq3_decode_frame(AVCodecContext *avctx, void *data, ...@@ -1125,8 +1125,7 @@ static int svq3_decode_frame(AVCodecContext *avctx, void *data,
h->mb_x = h->mb_y = h->mb_xy = 0; h->mb_x = h->mb_y = h->mb_xy = 0;
if (s->watermark_key) { if (s->watermark_key) {
av_fast_malloc(&s->buf, &s->buf_size, av_fast_padded_malloc(&s->buf, &s->buf_size, buf_size);
buf_size+FF_INPUT_BUFFER_PADDING_SIZE);
if (!s->buf) if (!s->buf)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
memcpy(s->buf, avpkt->data, buf_size); memcpy(s->buf, avpkt->data, buf_size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment