Revision a1ab56c5 libavcodec/alacenc.c

View differences:

libavcodec/alacenc.c
406 406
    s->min_prediction_order = DEFAULT_MIN_PRED_ORDER;
407 407
    if(avctx->min_prediction_order >= 0) {
408 408
        if(avctx->min_prediction_order < MIN_LPC_ORDER ||
409
            avctx->min_prediction_order > MAX_LPC_ORDER) {
409
           avctx->min_prediction_order > ALAC_MAX_LPC_ORDER) {
410 410
            av_log(avctx, AV_LOG_ERROR, "invalid min prediction order: %d\n", avctx->min_prediction_order);
411 411
                return -1;
412 412
        }
......
417 417
    s->max_prediction_order = DEFAULT_MAX_PRED_ORDER;
418 418
    if(avctx->max_prediction_order >= 0) {
419 419
        if(avctx->max_prediction_order < MIN_LPC_ORDER ||
420
           avctx->max_prediction_order > MAX_LPC_ORDER) {
420
           avctx->max_prediction_order > ALAC_MAX_LPC_ORDER) {
421 421
            av_log(avctx, AV_LOG_ERROR, "invalid max prediction order: %d\n", avctx->max_prediction_order);
422 422
                return -1;
423 423
        }

Also available in: Unified diff