]> git.sesse.net Git - vlc/commitdiff
Fixed mkv seeking regression while adding simpleblock support.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 21 Apr 2010 18:28:13 +0000 (20:28 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 21 Apr 2010 18:29:51 +0000 (20:29 +0200)
modules/demux/mkv/matroska_segment.cpp

index 9fa07f0a3d21f05f1f22618cd90223c89162573b..2a7d0853a24aeae41620aa3ba5c951f5bd502f46 100644 (file)
@@ -1407,7 +1407,7 @@ int matroska_segment_c::BlockGet( KaxBlock * & pp_block, KaxSimpleBlock * & pp_s
 
                 ref.ReadData( es.I_O() );
 
-                if( int64( ref ) < 0 )
+                if( *pb_key_picture )
                     *pb_key_picture = false;
                 else if( int64( ref ) > 0 )
                     *pb_discardable_picture = true;