Commit faff8578 by Oliver Woodman

Use the right overload of createAudioFormat in Ac3Util.

parent a4ff13d7
...@@ -51,7 +51,7 @@ public final class Ac3Util { ...@@ -51,7 +51,7 @@ public final class Ac3Util {
channelCount++; channelCount++;
} }
return MediaFormat.createAudioFormat(MimeTypes.AUDIO_AC3, MediaFormat.NO_VALUE, return MediaFormat.createAudioFormat(MimeTypes.AUDIO_AC3, MediaFormat.NO_VALUE,
MediaFormat.NO_VALUE, channelCount, sampleRate, Collections.<byte[]>emptyList()); channelCount, sampleRate, Collections.<byte[]>emptyList());
} }
/** /**
...@@ -102,7 +102,7 @@ public final class Ac3Util { ...@@ -102,7 +102,7 @@ public final class Ac3Util {
} }
boolean lfeon = data.readBit(); boolean lfeon = data.readBit();
return MediaFormat.createAudioFormat(MimeTypes.AUDIO_AC3, MediaFormat.NO_VALUE, return MediaFormat.createAudioFormat(MimeTypes.AUDIO_AC3, MediaFormat.NO_VALUE,
MediaFormat.NO_VALUE, CHANNEL_COUNTS[acmod] + (lfeon ? 1 : 0), SAMPLE_RATES[fscod], CHANNEL_COUNTS[acmod] + (lfeon ? 1 : 0), SAMPLE_RATES[fscod],
Collections.<byte[]>emptyList()); Collections.<byte[]>emptyList());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment