Commit cb4ea7cc authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mpeg: avoid false positives with WAVE/dts (fix #13866)

parent 39bd1d86
...@@ -654,7 +654,12 @@ static int GenericProbe( demux_t *p_demux, int64_t *pi_offset, ...@@ -654,7 +654,12 @@ static int GenericProbe( demux_t *p_demux, int64_t *pi_offset,
for( int t = 0; t < 1 + !!b_wav; t++ ) for( int t = 0; t < 1 + !!b_wav; t++ )
{ {
if( t == 1 ) if( t == 1 )
{
if(!i_samples)
break;
i_size = i_samples * 2 * 2; i_size = i_samples * 2 * 2;
}
if( i_skip + i_check_size + i_size <= i_peek ) if( i_skip + i_check_size + i_size <= i_peek )
{ {
b_ok = pf_check( &p_peek[i_skip+i_size], NULL ) >= 0; b_ok = pf_check( &p_peek[i_skip+i_size], NULL ) >= 0;
......
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