Change an error to a warning to support broken AC-3 files known to exist.
authorJustin Ruggles <justin.ruggles@gmail.com>
Thu, 1 Oct 2009 00:06:54 +0000 (00:06 +0000)
committerJustin Ruggles <justin.ruggles@gmail.com>
Thu, 1 Oct 2009 00:06:54 +0000 (00:06 +0000)
Fixes Issue 1426.

Originally committed as revision 20110 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ac3dec.c

index 650468b..1ab17d7 100644 (file)
@@ -941,8 +941,8 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
             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;
         }
     }