[FFmpeg-cvslog] avcodec/svq3: use av_fast_padded_malloc()
Paul B Mahol
git at videolan.org
Wed Oct 30 12:41:53 CET 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Oct 30 09:17:26 2013 +0000| [268d0d6e6c89e78ac717e5aea9a7f9c81ca44b33] | committer: Paul B Mahol
avcodec/svq3: use av_fast_padded_malloc()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=268d0d6e6c89e78ac717e5aea9a7f9c81ca44b33
---
libavcodec/svq3.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 89bb616..1c8e1ec 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);
More information about the ffmpeg-cvslog
mailing list