Revision d1515324 libavcodec/ac3dec.c

View differences:

libavcodec/ac3dec.c
314 314
        s->skip_syntax           = 1;
315 315
        memset(s->channel_uses_aht, 0, sizeof(s->channel_uses_aht));
316 316
        return ac3_parse_header(s);
317
    } else {
317
    } else if (CONFIG_EAC3_DECODER) {
318 318
        s->eac3 = 1;
319 319
        return ff_eac3_parse_header(s);
320
    } else {
321
        av_log(s->avctx, AV_LOG_ERROR, "E-AC-3 support not compiled in\n");
322
        return -1;
320 323
    }
321 324
}
322 325

  
......
559 562
        /* if AHT is used, mantissas for all blocks are encoded in the first
560 563
           block of the frame. */
561 564
        int bin;
562
        if (!blk)
565
        if (!blk && CONFIG_EAC3_DECODER)
563 566
            ff_eac3_decode_transform_coeffs_aht_ch(s, ch);
564 567
        for (bin = s->start_freq[ch]; bin < s->end_freq[ch]; bin++) {
565 568
            s->fixed_coeffs[ch][bin] = s->pre_mantissa[ch][bin][blk] >> s->dexps[ch][bin];

Also available in: Unified diff