summaryrefslogtreecommitdiff
path: root/libavcodec/svq3.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-05-07 09:58:38 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-05-07 09:58:38 +0200
commitf44967b1b548413830324f6c64f78032f9cbecc3 (patch)
tree7de37831ac71dbf9004c2c6b7a1a4cbf18a5b5b8 /libavcodec/svq3.c
parent6266c515389a2d77951b204ff21c9eeb67758fdf (diff)
Use av_fast_malloc instead of av_fast_realloc.
Avoids a memleak, is less code and might be faster.
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r--libavcodec/svq3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 75166066ff..a7e806540a 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -949,8 +949,8 @@ static int svq3_decode_frame(AVCodecContext *avctx,
s->mb_x = s->mb_y = h->mb_xy = 0;
if (svq3->watermark_key) {
- svq3->buf = av_fast_realloc(svq3->buf, &svq3->buf_size,
- buf_size+FF_INPUT_BUFFER_PADDING_SIZE);
+ av_fast_malloc(&svq3->buf, &svq3->buf_size,
+ buf_size+FF_INPUT_BUFFER_PADDING_SIZE);
if (!svq3->buf)
return AVERROR(ENOMEM);
memcpy(svq3->buf, avpkt->data, buf_size);