You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/utils: Move av_read_(play|pause) to demux_utils.c
These functions are for demuxers only. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -197,3 +197,21 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int av_read_play(AVFormatContext *s)
|
||||||
|
{
|
||||||
|
if (s->iformat->read_play)
|
||||||
|
return s->iformat->read_play(s);
|
||||||
|
if (s->pb)
|
||||||
|
return avio_pause(s->pb, 0);
|
||||||
|
return AVERROR(ENOSYS);
|
||||||
|
}
|
||||||
|
|
||||||
|
int av_read_pause(AVFormatContext *s)
|
||||||
|
{
|
||||||
|
if (s->iformat->read_pause)
|
||||||
|
return s->iformat->read_pause(s);
|
||||||
|
if (s->pb)
|
||||||
|
return avio_pause(s->pb, 1);
|
||||||
|
return AVERROR(ENOSYS);
|
||||||
|
}
|
||||||
|
@@ -458,24 +458,6 @@ int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type,
|
|||||||
|
|
||||||
/*******************************************************/
|
/*******************************************************/
|
||||||
|
|
||||||
int av_read_play(AVFormatContext *s)
|
|
||||||
{
|
|
||||||
if (s->iformat->read_play)
|
|
||||||
return s->iformat->read_play(s);
|
|
||||||
if (s->pb)
|
|
||||||
return avio_pause(s->pb, 0);
|
|
||||||
return AVERROR(ENOSYS);
|
|
||||||
}
|
|
||||||
|
|
||||||
int av_read_pause(AVFormatContext *s)
|
|
||||||
{
|
|
||||||
if (s->iformat->read_pause)
|
|
||||||
return s->iformat->read_pause(s);
|
|
||||||
if (s->pb)
|
|
||||||
return avio_pause(s->pb, 1);
|
|
||||||
return AVERROR(ENOSYS);
|
|
||||||
}
|
|
||||||
|
|
||||||
int ff_stream_side_data_copy(AVStream *dst, const AVStream *src)
|
int ff_stream_side_data_copy(AVStream *dst, const AVStream *src)
|
||||||
{
|
{
|
||||||
/* Free existing side data*/
|
/* Free existing side data*/
|
||||||
|
Reference in New Issue
Block a user