aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJai Menon <jmenon86@gmail.com>2008-08-19 18:45:00 +0000
committerJai Menon <jmenon86@gmail.com>2008-08-19 18:45:00 +0000
commita1ab56c5a833370d18cdad0ae7874dee06ad44ce (patch)
treeb25737e70077b7e9e238ccac055eb85e22cce0f4 /libavcodec
parent8257b835cf4d422ca3f0426ac2e151f5dff69ecb (diff)
downloadffmpeg-a1ab56c5a833370d18cdad0ae7874dee06ad44ce.tar.gz
alacenc: compare against ALAC_MAX_LPC_ORDER instead of MAX_LPC_ORDER
Originally committed as revision 14847 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/alacenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c
index a1fb66f9e2..85adb40a7a 100644
--- a/libavcodec/alacenc.c
+++ b/libavcodec/alacenc.c
@@ -406,7 +406,7 @@ static av_cold int alac_encode_init(AVCodecContext *avctx)
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 @@ static av_cold int alac_encode_init(AVCodecContext *avctx)
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;
}