Commit 1bfc365c authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: mkv: ensure timescale is always valid

parent aad4b35c
...@@ -341,6 +341,7 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m ) ...@@ -341,6 +341,7 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m )
KaxTrackTimecodeScale &ttcs = *(KaxTrackTimecodeScale*)l; KaxTrackTimecodeScale &ttcs = *(KaxTrackTimecodeScale*)l;
tk->f_timecodescale = float( ttcs ); tk->f_timecodescale = float( ttcs );
if ( tk->f_timecodescale <= 0 ) tk->f_timecodescale = 1.0;
msg_Dbg( &sys.demuxer, "| | | + Track TimeCodeScale=%f", tk->f_timecodescale ); msg_Dbg( &sys.demuxer, "| | | + Track TimeCodeScale=%f", tk->f_timecodescale );
} }
else if( MKV_IS_ID( l, KaxMaxBlockAdditionID ) ) // UNUSED else if( MKV_IS_ID( l, KaxMaxBlockAdditionID ) ) // 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