Commit dd7198b2 authored by Michael Niedermayer's avatar Michael Niedermayer

lavf: put av_new_stream() compatibility wrapper back

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 491d8353
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment