[vlc-commits] demux: adaptive: fix VPx mappings
    Francois Cartegnie 
    git at videolan.org
       
    Mon Mar  9 14:52:00 CET 2020
    
    
  
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Mar  9 14:46:28 2020 +0100| [9d8df8c7c0101ba83883354b5e6c309b06dcac93] | committer: Francois Cartegnie
demux: adaptive: fix VPx mappings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9d8df8c7c0101ba83883354b5e6c309b06dcac93
---
 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