You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02: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:
@@ -691,3 +691,10 @@ int ff_is_intra_only(enum AVCodecID id)
|
|||||||
return 0;
|
return 0;
|
||||||
return 1;
|
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;
|
par->extradata_size = buf->len;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_format_set_url(AVFormatContext *s, char *url)
|
|
||||||
{
|
|
||||||
av_assert0(url);
|
|
||||||
av_freep(&s->url);
|
|
||||||
s->url = url;
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user