[vlc-commits] demux: hls: feed codec strings
Francois Cartegnie
git at videolan.org
Mon Mar 30 16:16:19 CEST 2020
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Apr 26 17:06:42 2019 +0200| [d4aafa65a250d47ffa8f7e321334228c4eac1a85] | committer: Francois Cartegnie
demux: hls: feed codec strings
(cherry picked from commit 3e1ac38228101c3c22b692796e6e5e8fdde8d271)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=d4aafa65a250d47ffa8f7e321334228c4eac1a85
---
modules/demux/hls/playlist/Parser.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/demux/hls/playlist/Parser.cpp b/modules/demux/hls/playlist/Parser.cpp
index 55eb957f14..0e78e2e85d 100644
--- a/modules/demux/hls/playlist/Parser.cpp
+++ b/modules/demux/hls/playlist/Parser.cpp
@@ -120,6 +120,9 @@ Representation * M3U8Parser::createRepresentation(BaseAdaptationSet *adaptSet, c
if(bwAttr)
rep->setBandwidth(bwAttr->decimal());
+ if(tag->getAttributeByName("CODECS"))
+ rep->addCodecs(tag->getAttributeByName("CODECS")->quotedString());
+
if(resAttr)
{
std::pair<int, int> res = resAttr->getResolution();
@@ -483,6 +486,9 @@ M3U8 * M3U8Parser::parse(vlc_object_t *p_object, stream_t *p_stream, const std::
desc += pair.second->getAttributeByName("NAME")->quotedString();
}
+ if(pair.second->getAttributeByName("CODECS"))
+ rep->addCodecs(pair.second->getAttributeByName("CODECS")->quotedString());
+
if(!desc.empty())
{
altAdaptSet->description.Set(desc);
More information about the vlc-commits
mailing list