diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-05-11 05:24:45 +0200 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-05-20 00:00:45 +0200 |
commit | 8aa29880365c4d801e46289efb31dc7378972ff4 (patch) | |
tree | 6276459d64684ab398055f9e0f6c91bed3995fd1 /libavcodec/flac_parser.c | |
parent | bc4f362c9281c6d3355133acdadc13a0993248e1 (diff) | |
download | ffmpeg-8aa29880365c4d801e46289efb31dc7378972ff4.tar.gz |
lavc/flac_parser: use av_fifo_alloc_array
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Diffstat (limited to 'libavcodec/flac_parser.c')
-rw-r--r-- | libavcodec/flac_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flac_parser.c b/libavcodec/flac_parser.c index 3178ee5e55..68c915e9ce 100644 --- a/libavcodec/flac_parser.c +++ b/libavcodec/flac_parser.c @@ -707,7 +707,7 @@ static av_cold int flac_parse_init(AVCodecParserContext *c) fpc->pc = c; /* There will generally be FLAC_MIN_HEADERS buffered in the fifo before it drains. This is allocated early to avoid slow reallocation. */ - fpc->fifo_buf = av_fifo_alloc(FLAC_AVG_FRAME_SIZE * (FLAC_MIN_HEADERS + 3)); + fpc->fifo_buf = av_fifo_alloc_array(FLAC_MIN_HEADERS + 3, FLAC_AVG_FRAME_SIZE); if (!fpc->fifo_buf) return AVERROR(ENOMEM); return 0; |