Commit e88b3852 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/aacdec: Fix storing state before PCE decode

Fixes Ticket4460
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 32e06c48
...@@ -424,7 +424,7 @@ static uint64_t sniff_channel_order(uint8_t (*layout_map)[3], int tags) ...@@ -424,7 +424,7 @@ static uint64_t sniff_channel_order(uint8_t (*layout_map)[3], int tags)
* Save current output configuration if and only if it has been locked. * Save current output configuration if and only if it has been locked.
*/ */
static void push_output_configuration(AACContext *ac) { static void push_output_configuration(AACContext *ac) {
if (ac->oc[1].status == OC_LOCKED) { if (ac->oc[1].status == OC_LOCKED || ac->oc[0].status == OC_NONE) {
ac->oc[0] = ac->oc[1]; ac->oc[0] = ac->oc[1];
} }
ac->oc[1].status = OC_NONE; ac->oc[1].status = OC_NONE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment