aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-02-06 17:21:46 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-02-09 19:03:32 +0100
commitdd7198b25fe16e45bcf86e0f1eca82baac7ef2de (patch)
tree759a2db3c02ac27d289bcbf8c65a3caf6f117738
parent491d8353e8aab444bfe25cf4867f4da666d16c47 (diff)
downloadffmpeg-dd7198b25fe16e45bcf86e0f1eca82baac7ef2de.tar.gz
lavf: put av_new_stream() compatibility wrapper back
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/utils.c10
1 files changed, 10 insertions, 0 deletions
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;