Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-02-06 20:21:46 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-02-09 22:03:32 +0400
commitdd7198b25fe16e45bcf86e0f1eca82baac7ef2de (patch)
tree759a2db3c02ac27d289bcbf8c65a3caf6f117738 /libavformat
parent491d8353e8aab444bfe25cf4867f4da666d16c47 (diff)
lavf: put av_new_stream() compatibility wrapper back
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-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;