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>
This commit is contained in:
Andreas Rheinhardt 2022-05-07 08:54:18 +02:00
parent 2831fa7aed
commit fd8a6f78c5
2 changed files with 7 additions and 7 deletions

View File

@ -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;
}

View File

@ -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;
}