Mercurial > libavcodec.hg
diff ac3dec.c @ 10333:c1c4435539e6 libavcodec
Change an error to a warning to support broken AC-3 files known to exist.
Fixes Issue 1426.
author | jbr |
---|---|
date | Thu, 01 Oct 2009 00:06:54 +0000 |
parents | b5b58febcf68 |
children | 9bf0edb1aeb1 |
line wrap: on
line diff
--- a/ac3dec.c Wed Sep 30 22:25:49 2009 +0000 +++ b/ac3dec.c Thu Oct 01 00:06:54 2009 +0000 @@ -941,8 +941,8 @@ 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; } }