Commit 797a58b1 authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: mkv: enforce valid frame rate

parent 1bfc365c
...@@ -622,7 +622,7 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m ) ...@@ -622,7 +622,7 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m )
{ {
KaxVideoFrameRate &vfps = *(KaxVideoFrameRate*)l; KaxVideoFrameRate &vfps = *(KaxVideoFrameRate*)l;
tk->f_fps = float( vfps ); tk->f_fps = __MAX( float( vfps ), 1 );
msg_Dbg( &sys.demuxer, " | | | + fps=%f", float( vfps ) ); msg_Dbg( &sys.demuxer, " | | | + fps=%f", float( vfps ) );
} }
// else if( MKV_IS_ID( l, KaxVideoGamma) ) //DEPRECATED by Matroska // else if( MKV_IS_ID( l, KaxVideoGamma) ) //DEPRECATED by Matroska
......
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