Correctly set a format duration.

This commit is contained in:
Oliver Woodman 2015-09-10 18:20:07 +01:00
parent 820433de06
commit 89fcafec5b

View file

@ -72,7 +72,7 @@ public final class Ac3Util {
channelCount++;
}
return MediaFormat.createAudioFormat(MimeTypes.AUDIO_EC3, MediaFormat.NO_VALUE,
MediaFormat.NO_VALUE, channelCount, sampleRate, null);
MediaFormat.NO_VALUE, durationUs, channelCount, sampleRate, null);
}
/**