[vlc-commits] demux: dash: pass the full codec string
Francois Cartegnie
git at videolan.org
Fri Oct 23 17:16:00 CEST 2020
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct 22 01:00:09 2020 +0200| [1c1bda50d1b0b7bc87ed295ccbc73ba0c4c7be22] | committer: Francois Cartegnie
demux: dash: pass the full codec string
(cherry picked from commit d89e9b15849d611f882056ec55526d00cfe7cef6)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=1c1bda50d1b0b7bc87ed295ccbc73ba0c4c7be22
---
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 b3f9451039..7ca6c8dd82 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