[vlc-commits] demux: adaptive: set vp0x profile/level
Francois Cartegnie
git at videolan.org
Mon Mar 30 16:16:06 CEST 2020
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jun 27 11:19:27 2019 +0200| [79ec67e7c00d5948bfe930f1f27d69ef3b23e925] | committer: Francois Cartegnie
demux: adaptive: set vp0x profile/level
(cherry picked from commit 8335da249d9c703352146d355a6b0386b3e3ee4b)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=79ec67e7c00d5948bfe930f1f27d69ef3b23e925
---
modules/demux/adaptive/tools/FormatNamespace.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/demux/adaptive/tools/FormatNamespace.cpp b/modules/demux/adaptive/tools/FormatNamespace.cpp
index cec0107fe6..d23cad7721 100644
--- a/modules/demux/adaptive/tools/FormatNamespace.cpp
+++ b/modules/demux/adaptive/tools/FormatNamespace.cpp
@@ -137,6 +137,11 @@ void FormatNamespace::Parse(vlc_fourcc_t fcc, const std::vector<std::string> &el
case MP4RA("vp09"):
case MP4RA("vp08"):
es_format_Change(&fmt, VIDEO_ES, vlc_fourcc_GetCodec(VIDEO_ES, fcc));
+ if(elements.size() > 1)
+ {
+ fmt.i_profile = std::stoi(elements.at(0), nullptr, 16);
+ fmt.i_level = std::stoi(elements.at(1), nullptr, 16);
+ }
break;
case MSFCC("AVC1"):
case MSFCC("AVCB"):
More information about the vlc-commits
mailing list