mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
avformat: remove obsolete FF_API_NEW_STREAM cruft
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
cc787709ee
commit
a578b93c73
@ -2175,21 +2175,6 @@ void avformat_close_input(AVFormatContext **s);
|
||||
* @}
|
||||
*/
|
||||
|
||||
#if FF_API_NEW_STREAM
|
||||
/**
|
||||
* Add a new stream to a media file.
|
||||
*
|
||||
* Can only be called in the read_header() function. If the flag
|
||||
* AVFMTCTX_NOHEADER is in the format context, then new streams
|
||||
* can be added in read_packet too.
|
||||
*
|
||||
* @param s media file handle
|
||||
* @param id file-format-dependent stream ID
|
||||
*/
|
||||
attribute_deprecated
|
||||
AVStream *av_new_stream(AVFormatContext *s, int id);
|
||||
#endif
|
||||
|
||||
#if FF_API_SET_PTS_INFO
|
||||
/**
|
||||
* @deprecated this function is not supposed to be called outside of lavf
|
||||
|
@ -3579,16 +3579,6 @@ 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, const AVCodec *c)
|
||||
{
|
||||
AVStream *st;
|
||||
|
@ -61,9 +61,6 @@
|
||||
#define FF_API_URL_FEOF (LIBAVFORMAT_VERSION_MAJOR < 57)
|
||||
#endif
|
||||
|
||||
#ifndef FF_API_NEW_STREAM
|
||||
#define FF_API_NEW_STREAM (LIBAVFORMAT_VERSION_MAJOR < 56)
|
||||
#endif
|
||||
#ifndef FF_API_SET_PTS_INFO
|
||||
#define FF_API_SET_PTS_INFO (LIBAVFORMAT_VERSION_MAJOR < 56)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user