]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dcadec.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / dcadec.c
index 59c1e6e3ead62dc5d8c20d9a1898d3df79fbf5f3..e7ae6e2d20e6f3aadd459645f2260bfc9d4bcd46 100644 (file)
@@ -2247,6 +2247,8 @@ static int dca_decode_frame(AVCodecContext *avctx, void *data,
                 } else {
                     s->channel_order_tab = dca_channel_reorder_nolfe_xch[s->amode];
                 }
+                if (s->channel_order_tab[s->xch_base_channel] < 0)
+                    return AVERROR_INVALIDDATA;
             } else {
                 channels = num_core_channels + !!s->lfe;
                 s->xch_present = 0; /* disable further xch processing */