On 04/17/2011 12:31 PM, Justin Ruggles wrote:

> The number of dba segments is the coded value + 1.
> The coupling dba offset starts at the first coupling band, not at zero.
> ---
> I finally got my hands on an AC-3 sample which uses delta bit allocation.
> Unfortunately the Libav AC-3 decoder didn't decode it properly. This patch
> fixes that.
> 
> diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
> index 396df87..208b40f 100644
> --- a/libavcodec/ac3dec.c
> +++ b/libavcodec/ac3dec.c
> @@ -1065,7 +1065,7 @@ static int decode_audio_block(AC3DecodeContext *s, int 
> blk)
>              if (decode_exponents(gbc, s->exp_strategy[blk][ch],
>                                   s->num_exp_groups[ch], s->dexps[ch][0],
>                                   &s->dexps[ch][s->start_freq[ch]+!!ch])) {
> -                av_log(s->avctx, AV_LOG_ERROR, "exponent out-of-range\n");
> +                av_log(s->avctx, AV_LOG_ERROR, "exponent out-of-range 
> (blk=%d ch=%d)\n", blk, ch);


oops. unrelated change...
fixed locally.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to