rtsp: Move the rtsp_probe function to the demuxer code block
This function is only used by the RTSP demuxer. Originally committed as revision 25537 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a66d44f0d2
commit
eced8fa02e
@ -546,13 +546,6 @@ static int rtsp_open_transport_ctx(AVFormatContext *s, RTSPStream *rtsp_st)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_RTSP_DEMUXER || CONFIG_RTSP_MUXER
|
#if CONFIG_RTSP_DEMUXER || CONFIG_RTSP_MUXER
|
||||||
static int rtsp_probe(AVProbeData *p)
|
|
||||||
{
|
|
||||||
if (av_strstart(p->filename, "rtsp:", NULL))
|
|
||||||
return AVPROBE_SCORE_MAX;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void rtsp_parse_range(int *min_ptr, int *max_ptr, const char **pp)
|
static void rtsp_parse_range(int *min_ptr, int *max_ptr, const char **pp)
|
||||||
{
|
{
|
||||||
const char *p;
|
const char *p;
|
||||||
@ -1788,6 +1781,13 @@ end:
|
|||||||
#endif /* CONFIG_RTPDEC */
|
#endif /* CONFIG_RTPDEC */
|
||||||
|
|
||||||
#if CONFIG_RTSP_DEMUXER
|
#if CONFIG_RTSP_DEMUXER
|
||||||
|
static int rtsp_probe(AVProbeData *p)
|
||||||
|
{
|
||||||
|
if (av_strstart(p->filename, "rtsp:", NULL))
|
||||||
|
return AVPROBE_SCORE_MAX;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int rtsp_read_header(AVFormatContext *s,
|
static int rtsp_read_header(AVFormatContext *s,
|
||||||
AVFormatParameters *ap)
|
AVFormatParameters *ap)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user