diff --git a/libavcodec/dca.c b/libavcodec/dca.c index 33e41201fb..315826371c 100644 --- a/libavcodec/dca.c +++ b/libavcodec/dca.c @@ -801,10 +801,14 @@ static int dca_subframe_header(DCAContext *s, int base_channel, int block_index) } } else { int am = s->amode & DCA_CHANNEL_MASK; + if (am < 16) { for (j = base_channel; j < s->prim_channels; j++) { s->downmix_coef[j][0] = dca_default_coeffs[am][j][0]; s->downmix_coef[j][1] = dca_default_coeffs[am][j][1]; } + } else { + av_log(s->avctx, AV_LOG_WARNING, "amode > 15 default downmix_coef unsupported\n"); + } } }