[vlc-commits] demux: mkv: enforce valid frame rate
Francois Cartegnie
git at videolan.org
Thu Mar 13 23:59:49 CET 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Mar 13 23:58:56 2014 +0100| [797a58b1e8f94609f2654c28f5e99e6a52ae9fdd] | committer: Francois Cartegnie
demux: mkv: enforce valid frame rate
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=797a58b1e8f94609f2654c28f5e99e6a52ae9fdd
---
modules/demux/mkv/matroska_segment_parse.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index 41fa0f3..1ed7b35 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -622,7 +622,7 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m )
{
KaxVideoFrameRate &vfps = *(KaxVideoFrameRate*)l;
- tk->f_fps = float( vfps );
+ tk->f_fps = __MAX( float( vfps ), 1 );
msg_Dbg( &sys.demuxer, " | | | + fps=%f", float( vfps ) );
}
// else if( MKV_IS_ID( l, KaxVideoGamma) ) //DEPRECATED by Matroska
More information about the vlc-commits
mailing list