changeset 6133:5c485301f6f3 libavcodec

used defined name for testing error resilience level
author jbr
date Tue, 08 Jan 2008 23:44:48 +0000
parents 92e04b74a635
children 6d0c5a68d559
files ac3dec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ac3dec.c	Tue Jan 08 23:08:51 2008 +0000
+++ b/ac3dec.c	Tue Jan 08 23:44:48 2008 +0000
@@ -1133,7 +1133,7 @@
     }
 
     /* check for crc mismatch */
-    if(avctx->error_resilience > 0) {
+    if(avctx->error_resilience >= FF_ER_CAREFUL) {
         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");
             return -1;