Commit e5fbc2d1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

voc: fix skipping of unknown headers (fixes #6437)

(cherry picked from commit ea068351)
parent bdc6ec2a
...@@ -421,17 +421,18 @@ static int Demux( demux_t *p_demux ) ...@@ -421,17 +421,18 @@ static int Demux( demux_t *p_demux )
{ {
demux_sys_t *p_sys = p_demux->p_sys; demux_sys_t *p_sys = p_demux->p_sys;
block_t *p_block; block_t *p_block;
int64_t i_offset, i; int64_t i;
i_offset = stream_Tell( p_demux->s ); if( p_sys->i_silence_countdown == 0 )
{
while( ( i_offset >= p_sys->i_block_end ) int64_t i_offset = stream_Tell( p_demux->s );
&& ( p_sys->i_silence_countdown == 0 ) ) if( i_offset >= p_sys->i_block_end )
{
if( ReadBlockHeader( p_demux ) != VLC_SUCCESS ) if( ReadBlockHeader( p_demux ) != VLC_SUCCESS )
return 0; return 0;
return 1;
}
if( p_sys->i_silence_countdown == 0 )
{
i = ( p_sys->i_block_end - i_offset ) i = ( p_sys->i_block_end - i_offset )
/ p_sys->fmt.audio.i_bytes_per_frame; / p_sys->fmt.audio.i_bytes_per_frame;
if( i > SAMPLES_BUFFER ) if( i > SAMPLES_BUFFER )
......
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