CodecCapabilities: use optional instead of 0 to represent null in supports().

In theory, the sampleRate and channels can be 0. Use optional to differentiate 0 and null.

Bug: 306023029
Test: MediaCodecCapabilitiesTest
Change-Id: I2caea767c51dcf6be6632168b167c22673b2e843
2 files changed