Browse Source

lavf: put av_new_stream() compatibility wrapper back

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 14 years ago
parent
commit
dd7198b25f
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      libavformat/utils.c

+ 10
- 0
libavformat/utils.c View File

@@ -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;


Loading…
Cancel
Save