| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
CHECK(channels == 6 || channels == 10);| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
CHECK(channels == 6 || channels == 10);```How about:
CHECK(channels == 6 || channels == 10);
if (channels == 10)
channels = 6;
```The above is to cater to the case where the incoming is a 5.1.4 bitstream with actual channel count of 10. So somehow, ComputeChannelCount() gets called with CHANNEL_LAYOUT_5_1_4_DOWNMIX and channels == 10. We want to allow this case to go through and remapped the channels from 10 to 6. If such a case will never happen (because channels are mapped to 6 by some earlier code), then I think it should be safe to just always return 6 when channel_layout == CHANNEL_LAYOUT_5_1_4_DOWNMIX? Thanks.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
CHECK(channels == 6 || channels == 10);Cedric T@cedri...@xperi.com Can we change this to 6?
```How about:
CHECK(channels == 6 || channels == 10);
if (channels == 10)
channels = 6;
```The above is to cater to the case where the incoming is a 5.1.4 bitstream with actual channel count of 10. So somehow, ComputeChannelCount() gets called with CHANNEL_LAYOUT_5_1_4_DOWNMIX and channels == 10. We want to allow this case to go through and remapped the channels from 10 to 6. If such a case will never happen (because channels are mapped to 6 by some earlier code), then I think it should be safe to just always return 6 when channel_layout == CHANNEL_LAYOUT_5_1_4_DOWNMIX? Thanks.
Forcing this down to 6 channels seems reasonable to me, but there is still a risk for a 6 vs 10 mismatch, if a caller passes and uses 10, and downstream code relies on the calculated 6.
We are currently looking at adding an actual `CHANNEL_LAYOUT_5_1_4` layout. Afterwards, `CHANNEL_LAYOUT_5_1_4_DOWNMIX` should always be 6 (and really just be `CHANNEL_LAYOUT_5_1`). Considering this, I would like to get rid of this special case entirely one day.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |