aacdec: Turn PS off when switching to stereo and turn it to implicit when switching to mono.
This commit is contained in:
parent
41e9682af2
commit
79c8e29a7e
@ -461,6 +461,7 @@ static ChannelElement *get_che(AACContext *ac, int type, int elem_id)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
ac->oc[1].m4ac.chan_config = 2;
|
ac->oc[1].m4ac.chan_config = 2;
|
||||||
|
ac->oc[1].m4ac.ps = 0;
|
||||||
}
|
}
|
||||||
// And vice-versa
|
// And vice-versa
|
||||||
if (!ac->tags_mapped && type == TYPE_SCE && ac->oc[1].m4ac.chan_config == 2) {
|
if (!ac->tags_mapped && type == TYPE_SCE && ac->oc[1].m4ac.chan_config == 2) {
|
||||||
@ -476,6 +477,8 @@ static ChannelElement *get_che(AACContext *ac, int type, int elem_id)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
ac->oc[1].m4ac.chan_config = 1;
|
ac->oc[1].m4ac.chan_config = 1;
|
||||||
|
if (ac->oc[1].m4ac.sbr)
|
||||||
|
ac->oc[1].m4ac.ps = -1;
|
||||||
}
|
}
|
||||||
// For indexed channel configurations map the channels solely based on position.
|
// For indexed channel configurations map the channels solely based on position.
|
||||||
switch (ac->oc[1].m4ac.chan_config) {
|
switch (ac->oc[1].m4ac.chan_config) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user