diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-11-05 13:11:18 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2011-11-05 15:07:19 +0100 |
commit | 0e5ecd806eadf7dd0ec645b1b69310ee76c0cd1c (patch) | |
tree | aa4774ed8070f10d86a16ec814cd39deda0ad8a1 /libavdevice/lavfi.c | |
parent | 454f1657288e75a9797381c8a26598674ea9bd68 (diff) | |
download | ffmpeg-0e5ecd806eadf7dd0ec645b1b69310ee76c0cd1c.tar.gz |
Replace remaining av_new_stream() with avformat_new_stream().
Diffstat (limited to 'libavdevice/lavfi.c')
-rw-r--r-- | libavdevice/lavfi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c index 9228156988..cce09c5592 100644 --- a/libavdevice/lavfi.c +++ b/libavdevice/lavfi.c @@ -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 */ |