[vlc-commits] demux: hls: extend probing (fix #14839)
Francois Cartegnie
git at videolan.org
Mon Jul 13 16:15:05 CEST 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jul 13 16:10:59 2015 +0200| [184723ed3d96ab256dfe38e8e072cc6cefce9941] | committer: Francois Cartegnie
demux: hls: extend probing (fix #14839)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=184723ed3d96ab256dfe38e8e072cc6cefce9941
---
modules/demux/hls/hls.cpp | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/demux/hls/hls.cpp b/modules/demux/hls/hls.cpp
index e88927f..600e681 100644
--- a/modules/demux/hls/hls.cpp
+++ b/modules/demux/hls/hls.cpp
@@ -104,11 +104,12 @@ static bool isHTTPLiveStreaming(stream_t *s)
{
const uint8_t *peek;
- int size = stream_Peek(s, &peek, 46);
- if (size < 7)
+ int size = stream_Peek(s, &peek, 7);
+ if (size < 7 || memcmp(peek, "#EXTM3U", 7))
return false;
- if (memcmp(peek, "#EXTM3U", 7) != 0)
+ size = stream_Peek(s, &peek, 512);
+ if (size < 7)
return false;
peek += 7;
More information about the vlc-commits
mailing list