avcodec/atrac3plusdec: fix compilation failure after last commit

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2022-11-04 09:12:19 -03:00
parent 9a15221731
commit e2a529bdca

View File

@ -155,7 +155,7 @@ static av_cold int set_channel_params(ATRAC3PContext *ctx,
return AVERROR_INVALIDDATA;
}
ctx->channel_map = channel_map[channels - 1];
ctx->channel_map = channel_map[avctx->channels - 1];
return 0;
}