aacdec: When ignoring a PCE restore the previous config

This is related to, but doesn't solve ticker 6152.
This commit is contained in:
Alex Converse 2017-02-16 13:08:31 -08:00
parent 2ac381088d
commit dde1bf074c

View File

@ -3036,6 +3036,7 @@ 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)