Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2013-10-29 18:30:23 +0400
committerPaul B Mahol <onemda@gmail.com>2013-10-30 15:04:05 +0400
commitc783bec6dc570d7962f6f485b4966c23642c4e32 (patch)
tree13bc3d4171da140875660b8fc827424dc278b7fe /libavcodec/mdec.c
parent62ef736f5a01555f5721f550e8d0119a12254099 (diff)
avcodec/mdec: use av_fast_padded_malloc()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/mdec.c')
-rw-r--r--libavcodec/mdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c
index ea47822e28..43ed9701c5 100644
--- a/libavcodec/mdec.c
+++ b/libavcodec/mdec.c
@@ -170,7 +170,7 @@ static int decode_frame(AVCodecContext *avctx,
frame.f->pict_type = AV_PICTURE_TYPE_I;
frame.f->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);
for (i = 0; i < buf_size; i += 2) {