From dd7198b25fe16e45bcf86e0f1eca82baac7ef2de Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 6 Feb 2012 17:21:46 +0100 Subject: [PATCH] lavf: put av_new_stream() compatibility wrapper back Signed-off-by: Michael Niedermayer --- libavformat/utils.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index 7988f2708b..71baf58d60 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2751,6 +2751,16 @@ void avformat_close_input(AVFormatContext **ps) avio_close(pb); } +#if FF_API_NEW_STREAM +AVStream *av_new_stream(AVFormatContext *s, int id) +{ + AVStream *st = avformat_new_stream(s, NULL); + if (st) + st->id = id; + return st; +} +#endif + AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c) { AVStream *st;