[FFmpeg-soc] [soc]: r2244 - eac3/ac3dec.c

jbr subversion at mplayerhq.hu
Fri May 30 00:43:37 CEST 2008


Author: jbr
Date: Fri May 30 00:43:36 2008
New Revision: 2244

Log:
change condition for checking CRC

Modified:
   eac3/ac3dec.c

Modified: eac3/ac3dec.c
==============================================================================
--- eac3/ac3dec.c	(original)
+++ eac3/ac3dec.c	Fri May 30 00:43:36 2008
@@ -1281,7 +1281,7 @@ static int ac3_decode_frame(AVCodecConte
     }
 
     /* check for crc mismatch */
-    if(!err && avctx->error_resilience > 0) {
+    if(!err && 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");
             err = 1;



More information about the FFmpeg-soc mailing list