[FFmpeg-cvslog] avformat/utils: Move ff_format_set_url to avformat.c

Andreas Rheinhardt git at videolan.org
Tue May 10 09:36:07 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat May  7 08:54:18 2022 +0200| [fd8a6f78c5b1c7d5553af58e275db9bef33915a9] | committer: Andreas Rheinhardt

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 at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fd8a6f78c5b1c7d5553af58e275db9bef33915a9
---

 libavformat/avformat.c | 7 +++++++
 libavformat/utils.c    | 7 -------
 2 files changed, 7 insertions(+), 7 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;
+}
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 343d8e7374..866b80cffe 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -697,10 +697,3 @@ int ff_bprint_to_codecpar_extradata(AVCodecParameters *par, struct AVBPrint *buf
     par->extradata_size = buf->len;
     return 0;
 }
-
-void ff_format_set_url(AVFormatContext *s, char *url)
-{
-    av_assert0(url);
-    av_freep(&s->url);
-    s->url = url;
-}



More information about the ffmpeg-cvslog mailing list