aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-01-30 18:33:32 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-02-01 14:37:46 -0500
commit00db4d4ad5d2313b18bda6bb6eeabb99db8f9c72 (patch)
tree253f86458b78166e422795919d45a851dceef3d3 /libavcodec
parent316fc7443b05f8c8b494443f2dfe590434796902 (diff)
downloadffmpeg-00db4d4ad5d2313b18bda6bb6eeabb99db8f9c72.tar.gz
asv1: use av_fast_padded_malloc()
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/asv1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/asv1.c b/libavcodec/asv1.c
index 8db23c07ef..754c1aa89a 100644
--- a/libavcodec/asv1.c
+++ b/libavcodec/asv1.c
@@ -408,7 +408,8 @@ static int decode_frame(AVCodecContext *avctx,
p->pict_type= AV_PICTURE_TYPE_I;
p->key_frame= 1;
- av_fast_malloc(&a->bitstream_buffer, &a->bitstream_buffer_size, buf_size + FF_INPUT_BUFFER_PADDING_SIZE);
+ av_fast_padded_malloc(&a->bitstream_buffer, &a->bitstream_buffer_size,
+ buf_size);
if (!a->bitstream_buffer)
return AVERROR(ENOMEM);