[FFmpeg-devel] [PATCH 1/3] lavf: put av_new_stream() compatibility wraper back
Michael Niedermayer
michaelni at gmx.at
Mon Feb 6 17:36:13 CET 2012
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavformat/utils.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index d974ccd..760ed0a 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2744,6 +2744,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;
--
1.7.5.4
More information about the ffmpeg-devel
mailing list