]> git.sesse.net Git - vlc/commitdiff
MKV: use __MIN instead of min(
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 18 Feb 2008 08:59:43 +0000 (08:59 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 18 Feb 2008 08:59:43 +0000 (08:59 +0000)
modules/demux/mkv.cpp

index 65ed0fb85b915a90094c0a28a99c0d8ba8af1c92..344fdb479229eb4d3b3aed096049f5aef3008562 100644 (file)
@@ -6035,7 +6035,7 @@ bool dvd_chapter_codec_c::Enter()
             binary *p_data = (*index)->GetBuffer();
             size_t i_size = *p_data++;
             // avoid reading too much from the buffer
-            i_size = min( i_size, ((*index)->GetSize() - 1) >> 3 );
+            i_size = __MIN( i_size, ((*index)->GetSize() - 1) >> 3 );
             for ( ; i_size > 0; i_size--, p_data += 8 )
             {
                 msg_Dbg( &sys.demuxer, "Matroska DVD enter command" );
@@ -6058,7 +6058,7 @@ bool dvd_chapter_codec_c::Leave()
             binary *p_data = (*index)->GetBuffer();
             size_t i_size = *p_data++;
             // avoid reading too much from the buffer
-            i_size = min( i_size, ((*index)->GetSize() - 1) >> 3 );
+            i_size = __MIN( i_size, ((*index)->GetSize() - 1) >> 3 );
             for ( ; i_size > 0; i_size--, p_data += 8 )
             {
                 msg_Dbg( &sys.demuxer, "Matroska DVD leave command" );