Commit 74ec041d authored by Laurent Aimar's avatar Laurent Aimar

Be more strict in flac SyncInfo checks.

parent 110e4f85
......@@ -600,6 +600,10 @@ static int SyncInfo( decoder_t *p_dec, uint8_t *p_buf,
if( i_blocksize < p_sys->stream_info.min_blocksize ||
i_blocksize > p_sys->stream_info.max_blocksize )
return 0;
if( *pi_bits_per_sample != p_sys->stream_info.bits_per_sample )
return 0;
if( *pi_sample_rate != p_sys->stream_info.sample_rate )
return 0;
}
return i_blocksize;
}
......
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