summaryrefslogtreecommitdiff
path: root/libavcodec/dca_exss.c
diff options
context:
space:
mode:
authorfoo86 <foobaz86@gmail.com>2016-05-03 03:42:36 +0300
committerJames Almer <jamrial@gmail.com>2016-05-03 16:40:43 -0300
commitb7d267399b0ab53d2dc00ee191707df4cc8bd536 (patch)
tree5cbdf1a4c0ec8c96a82f9880f06b8179588837b9 /libavcodec/dca_exss.c
parent77a7ff8f0501c0cca268f55241d57ed7b6b6fac3 (diff)
avcodec/dca: convert to AVCRC
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/dca_exss.c')
-rw-r--r--libavcodec/dca_exss.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/dca_exss.c b/libavcodec/dca_exss.c
index 36314c210b..87b2f42afb 100644
--- a/libavcodec/dca_exss.c
+++ b/libavcodec/dca_exss.c
@@ -398,8 +398,7 @@ int ff_dca_exss_parse(DCAExssParser *s, uint8_t *data, int size)
header_size = get_bits(&s->gb, 8 + 4 * wide_hdr) + 1;
// Check CRC
- if ((s->avctx->err_recognition & (AV_EF_CRCCHECK | AV_EF_CAREFUL))
- && ff_dca_check_crc(&s->gb, 32 + 8, header_size * 8)) {
+ if (ff_dca_check_crc(s->avctx, &s->gb, 32 + 8, header_size * 8)) {
av_log(s->avctx, AV_LOG_ERROR, "Invalid EXSS header checksum\n");
return AVERROR_INVALIDDATA;
}