[vlc-commits] demux: adaptive: fix VPx mappings
Francois Cartegnie
git at videolan.org
Mon Mar 30 16:16:35 CEST 2020
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Mar 9 14:46:28 2020 +0100| [115a2b47031f93b9cdbdb1cdb581fff178b92c1b] | committer: Francois Cartegnie
demux: adaptive: fix VPx mappings
(cherry picked from commit 9d8df8c7c0101ba83883354b5e6c309b06dcac93)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=115a2b47031f93b9cdbdb1cdb581fff178b92c1b
---
modules/demux/adaptive/tools/FormatNamespace.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/demux/adaptive/tools/FormatNamespace.cpp b/modules/demux/adaptive/tools/FormatNamespace.cpp
index d637befa8a..e1e36e8260 100644
--- a/modules/demux/adaptive/tools/FormatNamespace.cpp
+++ b/modules/demux/adaptive/tools/FormatNamespace.cpp
@@ -138,7 +138,10 @@ void FormatNamespace::Parse(vlc_fourcc_t fcc, const std::vector<std::string> &el
break;
case MP4RA("vp09"):
case MP4RA("vp08"):
- es_format_Change(&fmt, VIDEO_ES, vlc_fourcc_GetCodec(VIDEO_ES, fcc));
+ es_format_Change(&fmt, VIDEO_ES,
+ vlc_fourcc_GetCodec(VIDEO_ES, fcc == MP4RA("vp09")
+ ? VLC_CODEC_VP9
+ : VLC_CODEC_VP8));
if(elements.size() > 1)
{
fmt.i_profile = std::stoi(elements.at(0), nullptr, 16);
More information about the vlc-commits
mailing list