Commit ef5b4cbe authored by jai_menon's avatar jai_menon

alacenc: compare against ALAC_MAX_LPC_ORDER instead of MAX_LPC_ORDER

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14847 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a269c79c
...@@ -406,7 +406,7 @@ static av_cold int alac_encode_init(AVCodecContext *avctx) ...@@ -406,7 +406,7 @@ static av_cold int alac_encode_init(AVCodecContext *avctx)
s->min_prediction_order = DEFAULT_MIN_PRED_ORDER; s->min_prediction_order = DEFAULT_MIN_PRED_ORDER;
if(avctx->min_prediction_order >= 0) { if(avctx->min_prediction_order >= 0) {
if(avctx->min_prediction_order < MIN_LPC_ORDER || 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); av_log(avctx, AV_LOG_ERROR, "invalid min prediction order: %d\n", avctx->min_prediction_order);
return -1; return -1;
} }
...@@ -417,7 +417,7 @@ static av_cold int alac_encode_init(AVCodecContext *avctx) ...@@ -417,7 +417,7 @@ static av_cold int alac_encode_init(AVCodecContext *avctx)
s->max_prediction_order = DEFAULT_MAX_PRED_ORDER; s->max_prediction_order = DEFAULT_MAX_PRED_ORDER;
if(avctx->max_prediction_order >= 0) { if(avctx->max_prediction_order >= 0) {
if(avctx->max_prediction_order < MIN_LPC_ORDER || 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); av_log(avctx, AV_LOG_ERROR, "invalid max prediction order: %d\n", avctx->max_prediction_order);
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment