[vlc-commits] demux: smooth: handle per streamindex timescale

Francois Cartegnie git at videolan.org
Mon Nov 9 11:04:51 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Nov  5 20:40:40 2015 +0100| [81913ec567f3c0092c1b0ae69b3b0006619ee4e5] | committer: Francois Cartegnie

demux: smooth: handle per streamindex timescale

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=81913ec567f3c0092c1b0ae69b3b0006619ee4e5
---

 modules/demux/smooth/playlist/Parser.cpp |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/demux/smooth/playlist/Parser.cpp b/modules/demux/smooth/playlist/Parser.cpp
index 5e2cfee..f488186 100644
--- a/modules/demux/smooth/playlist/Parser.cpp
+++ b/modules/demux/smooth/playlist/Parser.cpp
@@ -215,6 +215,10 @@ static void ParseStreamIndex(BasePeriod *period, Node *streamIndexNode, unsigned
         adaptSet->setID(ID(id));
         if(streamIndexNode->hasAttribute("Language"))
             adaptSet->addLang(streamIndexNode->getAttributeValue("Language"));
+
+        if(streamIndexNode->hasAttribute("TimeScale"))
+            adaptSet->timescale.Set(Integer<uint64_t>(streamIndexNode->getAttributeValue("TimeScale")));
+
         const std::string url = streamIndexNode->getAttributeValue("Url");
         if(!url.empty())
         {



More information about the vlc-commits mailing list