diff libmpdemux/demux_lavf.c @ 35829:66bbe17c4abc

demux_lavf: fix up all ffmpeg:// URLs. Fixes playback of hls streams via FFmpeg.
author reimar
date Sat, 23 Feb 2013 23:54:24 +0000
parents 7c91c2a669f4
children c297c1a78ae6
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Wed Feb 20 09:12:09 2013 +0000
+++ b/libmpdemux/demux_lavf.c	Sat Feb 23 23:54:24 2013 +0000
@@ -539,7 +539,7 @@
     }
 
     if(demuxer->stream->url) {
-        if (!strncmp(demuxer->stream->url, "ffmpeg://rtsp:", 14))
+        if (!strncmp(demuxer->stream->url, "ffmpeg://", 9))
             av_strlcpy(mp_filename, demuxer->stream->url + 9, sizeof(mp_filename));
         else
             av_strlcat(mp_filename, demuxer->stream->url, sizeof(mp_filename));