Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-07 09:54:18 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-10 08:49:10 +0300
commitfd8a6f78c5b1c7d5553af58e275db9bef33915a9 (patch)
tree7595e6307be86a76287bf85b4587b41967aa2935 /libavformat/avformat.c
parent2831fa7aed2c39d64f60aed4b2c95e7cacfc498d (diff)
avformat/utils: Move ff_format_set_url to avformat.c
An auxiliary function for AVFormatContexts (mainly muxers, but potentially (e.g. rtsp) also demuxers). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/avformat.c')
-rw-r--r--libavformat/avformat.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/avformat.c b/libavformat/avformat.c
index eabccffcb0..414224187a 100644
--- a/libavformat/avformat.c
+++ b/libavformat/avformat.c
@@ -691,3 +691,10 @@ int ff_is_intra_only(enum AVCodecID id)
return 0;
return 1;
}
+
+void ff_format_set_url(AVFormatContext *s, char *url)
+{
+ av_assert0(url);
+ av_freep(&s->url);
+ s->url = url;
+}