diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2009-10-01 00:06:54 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-10-01 00:06:54 +0000 |
commit | 535497f193545614eeafe2a6644bfb486ced5b33 (patch) | |
tree | ac26a96adea521fc204a90a97c11ebef64b4ddda | |
parent | 6945c2bc4cf27d8ca8e2bf49b49716cb72f30704 (diff) | |
download | ffmpeg-535497f193545614eeafe2a6644bfb486ced5b33.tar.gz |
Change an error to a warning to support broken AC-3 files known to exist.
Fixes Issue 1426.
Originally committed as revision 20110 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/ac3dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 650468bfd6..1ab17d72fb 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -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; } } |