projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00db4d4
)
eatqi: use av_fast_padded_malloc()
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Mon, 30 Jan 2012 23:34:10 +0000
(18:34 -0500)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 1 Feb 2012 19:37:47 +0000
(14:37 -0500)
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
libavcodec/eatqi.c
patch
|
blob
|
history
diff --git
a/libavcodec/eatqi.c
b/libavcodec/eatqi.c
index
aaf704b
..
179b84d
100644
(file)
--- a/
libavcodec/eatqi.c
+++ b/
libavcodec/eatqi.c
@@
-124,7
+124,8
@@
static int tqi_decode_frame(AVCodecContext *avctx,
return -1;
}
- av_fast_malloc(&t->bitstream_buf, &t->bitstream_buf_size, (buf_end-buf) + FF_INPUT_BUFFER_PADDING_SIZE);
+ av_fast_padded_malloc(&t->bitstream_buf, &t->bitstream_buf_size,
+ buf_end - buf);
if (!t->bitstream_buf)
return AVERROR(ENOMEM);
s->dsp.bswap_buf(t->bitstream_buf, (const uint32_t*)buf, (buf_end-buf)/4);