mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-14 22:22:59 +02:00
avcodec/svq3: use av_fast_padded_malloc()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
8e609eb475
commit
268d0d6e6c
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user