summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-06 16:45:00 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-10 07:31:47 +0200
commit437484a66a3c1d002ab6683eab6eba90d517a35a (patch)
tree1d5e7cce43be171f84abf02a543046971a96b085 /libavformat/utils.c
parentd78838414b8362a7aa7c27abacee1f6ca036199c (diff)
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>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index a695f19b03..58d2524457 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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);