|
|
@@ -1371,7 +1371,7 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, |
|
|
if (s->frame_size > buf_size) { |
|
|
if (s->frame_size > buf_size) { |
|
|
av_log(avctx, AV_LOG_ERROR, "incomplete frame\n"); |
|
|
av_log(avctx, AV_LOG_ERROR, "incomplete frame\n"); |
|
|
err = AAC_AC3_PARSE_ERROR_FRAME_SIZE; |
|
|
err = AAC_AC3_PARSE_ERROR_FRAME_SIZE; |
|
|
} else if (avctx->err_recognition & AV_EF_CRCCHECK) { |
|
|
|
|
|
|
|
|
} else if (avctx->err_recognition & (AV_EF_CRCCHECK|AV_EF_CAREFUL)) { |
|
|
/* check for crc mismatch */ |
|
|
/* check for crc mismatch */ |
|
|
if (av_crc(av_crc_get_table(AV_CRC_16_ANSI), 0, &buf[2], |
|
|
if (av_crc(av_crc_get_table(AV_CRC_16_ANSI), 0, &buf[2], |
|
|
s->frame_size - 2)) { |
|
|
s->frame_size - 2)) { |
|
|
|