History

aacdec: Turn PS off when switching to stereo and turn it to implicit when switching to mono.

Alex Converse committed 14 years ago

Commit 79c8e291 parent 41e96821 file · +3 −0Browse files

Unified · Split

libavcodec/aacdec.c+3−0
@@ -461,6 +461,7 @@ static ChannelElement *get_che(AACContext *ac, int type, int elem_id) · 460 unmodified lines
461461 return NULL;
462462
463463 ac->oc[1].m4ac.chan_config = 2;
464+ ac->oc[1].m4ac.ps = 0;
464465 }
465466 // And vice-versa
466467 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) · 9 unmodified lines
476477 return NULL;
477478
478479 ac->oc[1].m4ac.chan_config = 1;
480+ if (ac->oc[1].m4ac.sbr)
481+ ac->oc[1].m4ac.ps = -1;
479482 }
480483 // For indexed channel configurations map the channels solely based on position.
481484 switch (ac->oc[1].m4ac.chan_config) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t