mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
avformat/utils: Move ff_format_output_open() to mux_utils.c
It is obviously a muxing-only function. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
d78838414b
commit
437484a66a
6 changed files with 22 additions and 21 deletions
|
|
@ -1655,16 +1655,6 @@ uint8_t *av_stream_new_side_data(AVStream *st, enum AVPacketSideDataType type,
|
|||
return data;
|
||||
}
|
||||
|
||||
int ff_format_output_open(AVFormatContext *s, const char *url, AVDictionary **options)
|
||||
{
|
||||
if (!s->oformat)
|
||||
return AVERROR(EINVAL);
|
||||
|
||||
if (!(s->oformat->flags & AVFMT_NOFILE))
|
||||
return s->io_open(s, &s->pb, url, AVIO_FLAG_WRITE, options);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ff_format_io_close_default(AVFormatContext *s, AVIOContext *pb)
|
||||
{
|
||||
avio_close(pb);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue