mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-17 19:39:00 +00:00
lavf: put av_new_stream() compatibility wrapper back
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
491d8353e8
commit
dd7198b25f
@ -2751,6 +2751,16 @@ void avformat_close_input(AVFormatContext **ps)
|
|||||||
avio_close(pb);
|
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 *avformat_new_stream(AVFormatContext *s, AVCodec *c)
|
||||||
{
|
{
|
||||||
AVStream *st;
|
AVStream *st;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user