media: allow full range of Vorbis sampling rates

Bug: 18615604
Change-Id: I51f0c5c81145b94626f2b7e4505b905b63a572bf
This commit is contained in:
Lajos Molnar
2014-12-04 09:50:06 -08:00
parent d234dc1f20
commit 0ca248599c

View File

@@ -648,7 +648,7 @@ public final class MediaCodecInfo {
maxChannels = 48;
} else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_VORBIS)) {
bitRates = Range.create(32000, 500000);
sampleRates = new int[] { 8000, 12000, 16000, 24000, 48000, 192000 };
sampleRateRange = Range.create(8000, 192000);
maxChannels = 255;
} else if (mime.equalsIgnoreCase(MediaFormat.MIMETYPE_AUDIO_OPUS)) {
bitRates = Range.create(6000, 510000);