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:
42060c7
)
mimic: initialize padding of swap_buf through av_fast_padded_malloc
author
Janne Grunau
<janne-libav@jannau.net>
Sun, 2 Dec 2012 21:15:42 +0000
(22:15 +0100)
committer
Janne Grunau
<janne-libav@jannau.net>
Tue, 4 Dec 2012 23:02:44 +0000
(
00:02
+0100)
libavcodec/mimic.c
patch
|
blob
|
history
diff --git
a/libavcodec/mimic.c
b/libavcodec/mimic.c
index
8e35f92
..
95695de
100644
(file)
--- a/
libavcodec/mimic.c
+++ b/
libavcodec/mimic.c
@@
-370,8
+370,7
@@
static int mimic_decode_frame(AVCodecContext *avctx, void *data,
ff_thread_finish_setup(avctx);
- av_fast_malloc(&ctx->swap_buf, &ctx->swap_buf_size,
- swap_buf_size + FF_INPUT_BUFFER_PADDING_SIZE);
+ av_fast_padded_malloc(&ctx->swap_buf, &ctx->swap_buf_size, swap_buf_size);
if(!ctx->swap_buf)
return AVERROR(ENOMEM);