summaryrefslogtreecommitdiff
path: root/libavcodec/flacdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-27 09:28:30 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-10-27 09:51:21 +0100
commit3b56f665b1cdb412d6916aac975664f45fceb938 (patch)
treece31f04a785c31bcadbe5e8e553beb57d844ff87 /libavcodec/flacdec.c
parent346e09638cc159a3c3e4cf971a5b795644faac16 (diff)
avcodec/flacdec: also do crc check when er compliant is set
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/flacdec.c')
-rw-r--r--libavcodec/flacdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index 85f5202121..9bf950ae3e 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -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);