Commit f6a740ff authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

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

(cherry picked from commit cb4ea7cc766c1326ccd89412fab5e5621d4dd356)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 32c3f46e
......@@ -612,7 +612,12 @@ static int GenericProbe( demux_t *p_demux, int64_t *pi_offset,
for( int t = 0; t < 1 + !!b_wav; t++ )
{
if( t == 1 )
{
if(!i_samples)
break;
i_size = i_samples * 2 * 2;
}
if( i_skip + i_check_size + i_size <= i_peek )
{
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