[vlc-commits] demux: dash: pass the full codec string

Francois Cartegnie git at videolan.org
Thu Oct 22 18:52:53 CEST 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct 22 01:00:09 2020 +0200| [d89e9b15849d611f882056ec55526d00cfe7cef6] | committer: Francois Cartegnie

demux: dash: pass the full codec string

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

 modules/demux/adaptive/playlist/BaseRepresentation.cpp | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/modules/demux/adaptive/playlist/BaseRepresentation.cpp b/modules/demux/adaptive/playlist/BaseRepresentation.cpp
index f4bfb4a5bc..eeda1de3c6 100644
--- a/modules/demux/adaptive/playlist/BaseRepresentation.cpp
+++ b/modules/demux/adaptive/playlist/BaseRepresentation.cpp
@@ -79,13 +79,7 @@ void BaseRepresentation::addCodecs(const std::string &s)
     std::list<std::string> list = Helper::tokenize(s, ',');
     std::list<std::string>::const_iterator it;
     for(it=list.begin(); it!=list.end(); ++it)
-    {
-        std::size_t pos = (*it).find_first_of('.', 0);
-        if(pos != std::string::npos)
-            codecs.push_back((*it).substr(0, pos));
-        else
-            codecs.push_back(*it);
-    }
+        codecs.push_back(*it);
 }
 
 bool BaseRepresentation::needsUpdate(uint64_t) const



More information about the vlc-commits mailing list