aacdec: dont pop random configurations
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 22 Feb 2013 12:51:39 +0000 (13:51 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 22 Feb 2013 13:46:17 +0000 (14:46 +0100)
Fixes out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/aacdec.c

index 6482787..880a38e 100644 (file)
@@ -2554,7 +2554,6 @@ static int aac_decode_frame_int(AVCodecContext *avctx, void *data,
             if (pce_found) {
                 av_log(avctx, AV_LOG_ERROR,
                        "Not evaluating a further program_config_element as this construct is dubious at best.\n");
-                pop_output_configuration(ac);
             } else {
                 err = output_configure(ac, layout_map, tags, OC_TRIAL_PCE, 1);
                 if (!err)