diff options
author | Dustin Brody <libav@parsoma.net> | 2011-10-22 08:44:16 -0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-10-22 14:49:55 +0200 |
commit | 9abc98737fe12ee67ddb7d52e9d497d4de2bac6c (patch) | |
tree | 35b72173105b169278e263f6d77129b84beea823 /libavcodec/ac3dec.c | |
parent | 5ea0001f9eadcbe2ab4ff934c788db04d9704e30 (diff) | |
download | ffmpeg-9abc98737fe12ee67ddb7d52e9d497d4de2bac6c.tar.gz |
lavc: replace references to deprecated AVCodecContext.error_recognition to use AVCodecContext.err_recognition
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r-- | libavcodec/ac3dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 134e0b5d11..8e216c039b 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -1357,7 +1357,7 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size, if (s->frame_size > buf_size) { av_log(avctx, AV_LOG_ERROR, "incomplete frame\n"); err = AAC_AC3_PARSE_ERROR_FRAME_SIZE; - } else if (avctx->error_recognition >= FF_ER_CAREFUL) { + } else if (avctx->err_recognition & AV_EF_CRCCHECK) { /* check for crc mismatch */ 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"); |