[FFmpeg-cvslog] r20110 - trunk/libavcodec/ac3dec.c

jbr subversion
Thu Oct 1 02:06:54 CEST 2009


Author: jbr
Date: Thu Oct  1 02:06:54 2009
New Revision: 20110

Log:
Change an error to a warning to support broken AC-3 files known to exist.
Fixes Issue 1426.

Modified:
   trunk/libavcodec/ac3dec.c

Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c	Thu Oct  1 00:25:49 2009	(r20109)
+++ trunk/libavcodec/ac3dec.c	Thu Oct  1 02:06:54 2009	(r20110)
@@ -941,8 +941,8 @@ static int decode_audio_block(AC3DecodeC
             for(bnd=0; bnd<s->num_rematrixing_bands; bnd++)
                 s->rematrixing_flags[bnd] = get_bits1(gbc);
         } else if (!blk) {
-            av_log(s->avctx, AV_LOG_ERROR, "new rematrixing strategy must be present in block 0\n");
-            return -1;
+            av_log(s->avctx, AV_LOG_WARNING, "Warning: new rematrixing strategy not present in block 0\n");
+            s->num_rematrixing_bands = 0;
         }
     }
 



More information about the ffmpeg-cvslog mailing list