diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-02-06 20:21:46 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-02-09 22:03:32 +0400 |
commit | dd7198b25fe16e45bcf86e0f1eca82baac7ef2de (patch) | |
tree | 759a2db3c02ac27d289bcbf8c65a3caf6f117738 /libavformat | |
parent | 491d8353e8aab444bfe25cf4867f4da666d16c47 (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.c | 10 |
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; |