Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
10332:dfb91c11fe9c | 10333:c1c4435539e6 |
---|---|
939 if(cpl_in_use && s->start_freq[CPL_CH] <= 61) | 939 if(cpl_in_use && s->start_freq[CPL_CH] <= 61) |
940 s->num_rematrixing_bands -= 1 + (s->start_freq[CPL_CH] == 37); | 940 s->num_rematrixing_bands -= 1 + (s->start_freq[CPL_CH] == 37); |
941 for(bnd=0; bnd<s->num_rematrixing_bands; bnd++) | 941 for(bnd=0; bnd<s->num_rematrixing_bands; bnd++) |
942 s->rematrixing_flags[bnd] = get_bits1(gbc); | 942 s->rematrixing_flags[bnd] = get_bits1(gbc); |
943 } else if (!blk) { | 943 } else if (!blk) { |
944 av_log(s->avctx, AV_LOG_ERROR, "new rematrixing strategy must be present in block 0\n"); | 944 av_log(s->avctx, AV_LOG_WARNING, "Warning: new rematrixing strategy not present in block 0\n"); |
945 return -1; | 945 s->num_rematrixing_bands = 0; |
946 } | 946 } |
947 } | 947 } |
948 | 948 |
949 /* exponent strategies for each channel */ | 949 /* exponent strategies for each channel */ |
950 for (ch = !cpl_in_use; ch <= s->channels; ch++) { | 950 for (ch = !cpl_in_use; ch <= s->channels; ch++) { |