[vlc-commits] demux:mkv: log the color range read from the file

Steve Lhomme git at videolan.org
Wed Dec 12 12:45:41 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Dec 12 12:20:58 2018 +0100| [a4717c0b86a89371af340e146f91a2c01e7121a5] | committer: Steve Lhomme

demux:mkv: log the color range read from the file

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

 modules/demux/mkv/matroska_segment_parse.cpp | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index 1954997f82..899e0c30e5 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -672,18 +672,22 @@ void matroska_segment_c::ParseTrackEntry( const KaxTrackEntry *m )
         }
         E_CASE( KaxVideoColourRange, range )
         {
+            const char *name = nullptr;
             switch( static_cast<uint8>(range) )
             {
-            case 1: // broadcast
+            case 1:
                 vars.tk->fmt.video.b_color_range_full = 0;
+                name ="limited";
                 break;
-            case 2: // full range
+            case 2:
                 vars.tk->fmt.video.b_color_range_full = 1;
+                name ="full";
                 break;
             case 3: // Matrix coefficients + Transfer characteristics
             default:
                 debug( vars, "Unsupported Colour Range=%d", static_cast<uint8>(range) );
             }
+            if (name != nullptr) debug( vars, "Range=%s", name );
         }
         E_CASE( KaxVideoColourTransferCharacter, tranfer )
         {



More information about the vlc-commits mailing list