From 238ef6dadd13b9a867eaa7382bdba751e25c40b9 Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sun, 12 Apr 2009 13:17:37 +0000 Subject: Add a av_fast_malloc function and replace several uses of av_fast_realloc, thus avoiding potential memleaks and pointless memcpys. Originally committed as revision 18470 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/eatqi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/eatqi.c') diff --git a/libavcodec/eatqi.c b/libavcodec/eatqi.c index 06dd7148c4..2a62402345 100644 --- a/libavcodec/eatqi.c +++ b/libavcodec/eatqi.c @@ -126,7 +126,7 @@ static int tqi_decode_frame(AVCodecContext *avctx, return -1; } - t->bitstream_buf = av_fast_realloc(t->bitstream_buf, &t->bitstream_buf_size, (buf_end-buf) + FF_INPUT_BUFFER_PADDING_SIZE); + av_fast_malloc(&t->bitstream_buf, &t->bitstream_buf_size, (buf_end-buf) + FF_INPUT_BUFFER_PADDING_SIZE); if (!t->bitstream_buf) return AVERROR(ENOMEM); s->dsp.bswap_buf(t->bitstream_buf, (const uint32_t*)buf, (buf_end-buf)/4); -- cgit v1.2.3