Browse Source

packetizer: flac: do not check min frame size for fixed block

cannot pass on truncated end

(cherry picked from commit 1db4d294ca)
cherry-pick-c5513cf9
Francois Cartegnie 4 years ago
parent
commit
07cd30a1ca
  1. 3
      modules/packetizer/flac.h

3
modules/packetizer/flac.h

@ -121,7 +121,8 @@ static inline int FLAC_CheckFrameInfo(const struct flac_stream_info *stream_info
/* Sanity check using stream info header when possible */
if (stream_info)
{
if (h->i_frame_length < stream_info->min_blocksize ||
if ((stream_info->min_blocksize != stream_info->max_blocksize &&
h->i_frame_length < stream_info->min_blocksize) ||
h->i_frame_length > stream_info->max_blocksize)
return 0;
if (h->i_bits_per_sample != stream_info->bits_per_sample)

Loading…
Cancel
Save