Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -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-versa | 466 | // 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) { |