]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/lavfi.c
vsrc_mandelbrot: spatial interpolation
[ffmpeg] / libavdevice / lavfi.c
index 92281569882c7fc891f6cc7a7d953422ba80e47e..cce09c5592306e1152c352cb498668ca8cf17252 100644 (file)
@@ -161,8 +161,9 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx,
     /* for each open output create a corresponding stream */
     for (i = 0, inout = output_links; inout; i++, inout = inout->next) {
         AVStream *st;
-        if (!(st = av_new_stream(avctx, i)))
+        if (!(st = avformat_new_stream(avctx, NULL)))
             FAIL(AVERROR(ENOMEM));
+        st->id = i;
     }
 
     /* create a sink for each output and connect them to the graph */