changeset 7620:5c2299115d1f libavcodec

alacenc: compare against ALAC_MAX_LPC_ORDER instead of MAX_LPC_ORDER
author jai_menon
date Tue, 19 Aug 2008 18:45:00 +0000
parents 0753d03d232a
children 4a3f1b75285e
files alacenc.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/alacenc.c	Tue Aug 19 17:20:41 2008 +0000
+++ b/alacenc.c	Tue Aug 19 18:45:00 2008 +0000
@@ -406,7 +406,7 @@
     s->min_prediction_order = DEFAULT_MIN_PRED_ORDER;
     if(avctx->min_prediction_order >= 0) {
         if(avctx->min_prediction_order < MIN_LPC_ORDER ||
-            avctx->min_prediction_order > MAX_LPC_ORDER) {
+           avctx->min_prediction_order > ALAC_MAX_LPC_ORDER) {
             av_log(avctx, AV_LOG_ERROR, "invalid min prediction order: %d\n", avctx->min_prediction_order);
                 return -1;
         }
@@ -417,7 +417,7 @@
     s->max_prediction_order = DEFAULT_MAX_PRED_ORDER;
     if(avctx->max_prediction_order >= 0) {
         if(avctx->max_prediction_order < MIN_LPC_ORDER ||
-           avctx->max_prediction_order > MAX_LPC_ORDER) {
+           avctx->max_prediction_order > ALAC_MAX_LPC_ORDER) {
             av_log(avctx, AV_LOG_ERROR, "invalid max prediction order: %d\n", avctx->max_prediction_order);
                 return -1;
         }