Commit a4717c0b authored by Steve Lhomme's avatar Steve Lhomme

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

parent 9290f0fb
......@@ -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 )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment