[vlc-commits] demux: adaptive: update probing signatures for hls
Francois Cartegnie
git at videolan.org
Wed May 15 16:38:54 CEST 2019
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon May 13 18:12:59 2019 +0200| [af863dbb216762e66ddc52757fcad694491dacba] | committer: Francois Cartegnie
demux: adaptive: update probing signatures for hls
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=af863dbb216762e66ddc52757fcad694491dacba
---
modules/demux/adaptive/StreamFormat.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/demux/adaptive/StreamFormat.cpp b/modules/demux/adaptive/StreamFormat.cpp
index 9a695c3c34..7d0d4a448e 100644
--- a/modules/demux/adaptive/StreamFormat.cpp
+++ b/modules/demux/adaptive/StreamFormat.cpp
@@ -99,8 +99,11 @@ StreamFormat::StreamFormat(const void *data_, size_t sz)
else if(sz > 7 && !memcmp("WEBVTT", data, 6) &&
std::isspace(static_cast<unsigned char>(data[7])))
formatid = StreamFormat::WEBVTT;
- else if(sz > 4 && !memcmp(".Eߣ", data, 4))
+ else if(sz > 4 && !memcmp("\x1A\x45\xDF\xA3", data, 4))
formatid = StreamFormat::WEBM;
+ else if(sz > 3 && (!memcmp("\xFF\xF1", data, 2)||
+ !memcmp("\xFF\xF9", data, 2)))
+ formatid = StreamFormat::PACKEDAAC;
}
StreamFormat::~StreamFormat()
More information about the vlc-commits
mailing list