Commit a4fdb5fa authored by Francois Cartegnie's avatar Francois Cartegnie

packetizer: flac: fix divbyzero (cid #1151677)

parent 426e9e88
......@@ -468,6 +468,9 @@ static int SyncInfo(decoder_t *p_dec, uint8_t *p_buf,
samplerate *= 10;
}
if ( !samplerate )
return 0;
/* Check the CRC-8 byte */
if (flac_crc8(p_buf, i_header) != p_buf[i_header])
return 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