From 8aa29880365c4d801e46289efb31dc7378972ff4 Mon Sep 17 00:00:00 2001 From: Lukasz Marek Date: Sun, 11 May 2014 05:24:45 +0200 Subject: lavc/flac_parser: use av_fifo_alloc_array Signed-off-by: Lukasz Marek --- libavcodec/flac_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/flac_parser.c') 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; -- cgit v1.2.3