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

Showing the changes to libavcodec (1 of 1 file). Show all

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
461 return NULL;461 return NULL;
462 462
463 ac->oc[1].m4ac.chan_config = 2;463 ac->oc[1].m4ac.chan_config = 2;
464 ac->oc[1].m4ac.ps = 0;
464 }465 }
465 // And vice-versa466 // And vice-versa
466 if (!ac->tags_mapped && type == TYPE_SCE && ac->oc[1].m4ac.chan_config == 2) {467 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
476 return NULL;477 return NULL;
477 478
478 ac->oc[1].m4ac.chan_config = 1;479 ac->oc[1].m4ac.chan_config = 1;
480 if (ac->oc[1].m4ac.sbr)
481 ac->oc[1].m4ac.ps = -1;
479 }482 }
480 // For indexed channel configurations map the channels solely based on position.483 // For indexed channel configurations map the channels solely based on position.
481 switch (ac->oc[1].m4ac.chan_config) {484 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