1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-16 16:02:54 +02:00

oggseek: simplify the loop exit

This commit is contained in:
Steve Lhomme 2018-05-31 16:34:45 +02:00
parent edbbefd9eb
commit ec1bd168c1

View File

@ -285,16 +285,16 @@ void Oggseek_ProbeEnd( demux_t *p_demux )
i_length = Ogg_GranuleToTime( p_sys->pp_stream[i], i_granule,
!p_sys->pp_stream[i]->b_contiguous, false );
if( i_length != VLC_TICK_INVALID )
{
/* We found at least a page with valid granule */
p_sys->i_length = __MAX( p_sys->i_length, SEC_FROM_VLC_TICK(i_length - VLC_TICK_0) );
goto clean;
}
break;
}
}
if ( i_length != VLC_TICK_INVALID ) break;
}
/* We found at least a page with valid granule */
if ( i_length != VLC_TICK_INVALID ) break;
/* Otherwise increase read size, starting earlier */
if ( i_backoffset <= ( UINT_MAX >> 1 ) )
{