Commit 8ae8da34 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

MKV: reduce the scope of the var loop counters

parent e21a40d8
......@@ -33,17 +33,16 @@ void virtual_segment_c::PrepareChapters( )
// !!! should be called only once !!!
matroska_segment_c *p_segment;
size_t i, j;
// copy editions from the first segment
p_segment = linked_segments[0];
p_editions = &p_segment->stored_editions;
for ( i=1 ; i<linked_segments.size(); i++ )
for ( size_t i=1 ; i<linked_segments.size(); i++ )
{
p_segment = linked_segments[i];
// FIXME assume we have the same editions in all segments
for (j=0; j<p_segment->stored_editions.size(); j++)
for ( size_t j=0; j<p_segment->stored_editions.size(); j++)
{
if( j >= p_editions->size() ) /* Protect against broken files (?) */
break;
......
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