Commit 213a1508 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

demux: mkv: fix the DisplayUnit log for DAR and unknown values

(cherry picked from commit faa273ee)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent d24da949
......@@ -601,8 +601,16 @@ void matroska_segment_c::ParseTrackEntry( const KaxTrackEntry *m )
E_CASE( KaxVideoDisplayUnit, vdmode )
{
vars.track_video_info.i_display_unit = static_cast<uint8>( vdmode );
debug( vars, "Track Video Display Unit=%s",
vars.track_video_info.i_display_unit == 0 ? "pixels" : ( vars.track_video_info.i_display_unit == 1 ? "centimeters": "inches" ) );
const char *psz_unit;
switch (vars.track_video_info.i_display_unit)
{
case 0: psz_unit = "pixels"; break;
case 1: psz_unit = "centimeters"; break;
case 2: psz_unit = "inches"; break;
case 3: psz_unit = "dar"; break;
default: psz_unit = "unknown"; break;
}
debug( vars, "Track Video Display Unit=%s", psz_unit );
}
E_CASE( KaxVideoAspectRatio, ratio ) // UNUSED
{
......
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