Commit 3b56f665 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/flacdec: also do crc check when er compliant is set

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 346e0963
......@@ -539,7 +539,7 @@ static int flac_decode_frame(AVCodecContext *avctx, void *data,
}
bytes_read = get_bits_count(&s->gb)/8;
if ((s->avctx->err_recognition & AV_EF_CRCCHECK) &&
if ((s->avctx->err_recognition & (AV_EF_CRCCHECK|AV_EF_COMPLIANT)) &&
av_crc(av_crc_get_table(AV_CRC_16_ANSI),
0, buf, bytes_read)) {
av_log(s->avctx, AV_LOG_ERROR, "CRC error at PTS %"PRId64"\n", avpkt->pts);
......
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