diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-05-11 05:26:31 +0200 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-05-20 00:00:45 +0200 |
commit | 74f9c5947d69ce0261335eb76b1e51ea5c7fd40d (patch) | |
tree | 3a80d38ad13a99d778cb2c5f3336ef046593bd6d /libavformat/dvenc.c | |
parent | 8aa29880365c4d801e46289efb31dc7378972ff4 (diff) | |
download | ffmpeg-74f9c5947d69ce0261335eb76b1e51ea5c7fd40d.tar.gz |
lavf/dvenc: use av_fifo_alloc_array
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Diffstat (limited to 'libavformat/dvenc.c')
-rw-r--r-- | libavformat/dvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |