mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 10:52:20 +00:00
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:
parent
2831fa7aed
commit
fd8a6f78c5
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user