[FFmpeg-cvslog] lavf: put av_new_stream() compatibility wrapper back

Michael Niedermayer git at videolan.org
Thu Feb 9 19:06:31 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Feb  6 17:21:46 2012 +0100| [dd7198b25fe16e45bcf86e0f1eca82baac7ef2de] | committer: Michael Niedermayer

lavf: put av_new_stream() compatibility wrapper back

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dd7198b25fe16e45bcf86e0f1eca82baac7ef2de
---

 libavformat/utils.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 7988f27..71baf58 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;



More information about the ffmpeg-cvslog mailing list