lavf/dvenc: use av_fifo_alloc_array
authorLukasz Marek <lukasz.m.luki2@gmail.com>
Sun, 11 May 2014 03:26:31 +0000 (05:26 +0200)
committerLukasz Marek <lukasz.m.luki2@gmail.com>
Mon, 19 May 2014 22:00:45 +0000 (00:00 +0200)
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
libavformat/dvenc.c

index defcf2a..bd484d9 100644 (file)
@@ -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]);