Revision f1752010 libavcodec/alac.c

View differences:

libavcodec/alac.c
491 491
    init_get_bits(&alac->gb, inbuffer, input_buffer_size * 8);
492 492

  
493 493
    channels = get_bits(&alac->gb, 3) + 1;
494
    if (channels > MAX_CHANNELS) {
495
        av_log(avctx, AV_LOG_ERROR, "channels > %d not supported\n",
496
               MAX_CHANNELS);
497
        return input_buffer_size;
498
    }
494 499

  
495 500
    /* 2^result = something to do with output waiting.
496 501
     * perhaps matters if we read > 1 frame in a pass?

Also available in: Unified diff