diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-28 12:34:35 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-28 12:34:35 +0100 |
commit | 84f972f9944ad29712c70f22bd55b2b12171abf8 (patch) | |
tree | 0a7b495dc78053710fbfff6ab6b4e36b5c483321 /libavcodec/ac3dec.c | |
parent | 528f5cdd2cf1c54f3f1b983964993c698ff91aca (diff) | |
parent | 23a211cbba0b7c9ee694040031b2e5da1be54a00 (diff) | |
download | ffmpeg-84f972f9944ad29712c70f22bd55b2b12171abf8.tar.gz |
Merge commit '23a211cbba0b7c9ee694040031b2e5da1be54a00'
* commit '23a211cbba0b7c9ee694040031b2e5da1be54a00':
lavc: change all decoders to behave consistently with AV_EF_CRCCHECK.
Conflicts:
libavcodec/avcodec.h
libavcodec/tta.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r-- | libavcodec/ac3dec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index f91ded0fcb..1603f4f426 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -1330,6 +1330,8 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, if (av_crc(av_crc_get_table(AV_CRC_16_ANSI), 0, &buf[2], s->frame_size - 2)) { av_log(avctx, AV_LOG_ERROR, "frame CRC mismatch\n"); + if (avctx->err_recognition & AV_EF_EXPLODE) + return AVERROR_INVALIDDATA; err = AAC_AC3_PARSE_ERROR_CRC; } } |