OSDN Git Service

rtsp: Add rtsps to the probe
authorLuca Barbato <lu_zero@gentoo.org>
Thu, 9 Oct 2014 20:07:35 +0000 (22:07 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 10 Oct 2014 14:29:06 +0000 (16:29 +0200)
libavformat/rtspdec.c

index 5dda52e..aa016c3 100644 (file)
@@ -680,7 +680,11 @@ static int rtsp_listen(AVFormatContext *s)
 
 static int rtsp_probe(AVProbeData *p)
 {
-    if (av_strstart(p->filename, "rtsp:", NULL))
+    if (
+#if CONFIG_TLS_PROTOCOL
+        av_strstart(p->filename, "rtsps:", NULL) ||
+#endif
+        av_strstart(p->filename, "rtsp:", NULL))
         return AVPROBE_SCORE_MAX;
     return 0;
 }