X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Fffmpeg%2Flibavcodec%2Fflac_parser.c;h=a031dbfc629cbaa3aab4420ada71ae358d9eed3f;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=3178ee5e5536e1f35ad0dd8a82b2814af98186ed;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/ffmpeg/libavcodec/flac_parser.c b/src/third_party/ffmpeg/libavcodec/flac_parser.c index 3178ee5..a031dbf 100644 --- a/src/third_party/ffmpeg/libavcodec/flac_parser.c +++ b/src/third_party/ffmpeg/libavcodec/flac_parser.c @@ -667,7 +667,6 @@ static int flac_parse(AVCodecParserContext *s, AVCodecContext *avctx, } } - curr = fpc->headers; for (curr = fpc->headers; curr; curr = curr->next) { if (curr->max_score > 0 && (!fpc->best_header || curr->max_score > fpc->best_header->max_score)) { @@ -707,7 +706,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;