[vlc-devel] [PATCH 2/3] mkv: crash fix

Steve Lhomme robux4 at videolabs.io
Thu Mar 17 15:05:29 CET 2016


---
 modules/demux/mkv/virtual_segment.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mkv/virtual_segment.cpp b/modules/demux/mkv/virtual_segment.cpp
index 90050fc..8c47e5f 100644
--- a/modules/demux/mkv/virtual_segment.cpp
+++ b/modules/demux/mkv/virtual_segment.cpp
@@ -547,7 +547,7 @@ virtual_chapter_c * virtual_segment_c::FindChapter( int64_t i_find_uid )
 {
     virtual_edition_c * p_edition = veditions[i_current_edition];
 
-    for( size_t i = 0; p_edition->vchapters.size(); i++ )
+    for( size_t i = 0; i < p_edition->vchapters.size(); i++ )
     {
         virtual_chapter_c * p_chapter = p_edition->vchapters[i]->FindChapter( i_find_uid );
         if( p_chapter )
-- 
2.7.1



More information about the vlc-devel mailing list