aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-10-30 09:17:26 +0000
committerPaul B Mahol <onemda@gmail.com>2013-10-30 11:04:07 +0000
commit268d0d6e6c89e78ac717e5aea9a7f9c81ca44b33 (patch)
treee89efa44f8af8700560004393f6e242e68aecf19
parent8e609eb475fec75bcb967d5efde2077dfe03b496 (diff)
downloadffmpeg-268d0d6e6c89e78ac717e5aea9a7f9c81ca44b33.tar.gz
avcodec/svq3: use av_fast_padded_malloc()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavcodec/svq3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 89bb616797..1c8e1ecd29 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -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);