From 74f9c5947d69ce0261335eb76b1e51ea5c7fd40d Mon Sep 17 00:00:00 2001 From: Lukasz Marek Date: Sun, 11 May 2014 05:26:31 +0200 Subject: [PATCH] lavf/dvenc: use av_fifo_alloc_array Signed-off-by: Lukasz Marek --- libavformat/dvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dvenc.c b/libavformat/dvenc.c index defcf2a16e..bd484d96e8 100644 --- a/libavformat/dvenc.c +++ b/libavformat/dvenc.c @@ -331,7 +331,7 @@ static DVMuxContext* dv_init_mux(AVFormatContext* s) c->start_time = ff_iso8601_to_unix_time(t->value); for (i=0; i < c->n_ast; i++) { - if (c->ast[i] && !(c->audio_data[i]=av_fifo_alloc(100*MAX_AUDIO_FRAME_SIZE))) { + if (c->ast[i] && !(c->audio_data[i]=av_fifo_alloc_array(100, MAX_AUDIO_FRAME_SIZE))) { while (i > 0) { i--; av_fifo_freep(&c->audio_data[i]);