Remove unnecessary buffer clear

This commit is contained in:
Cameron Gutman 2015-08-17 18:26:33 -07:00
parent af384d88f7
commit 932ce435b5

View File

@ -593,8 +593,6 @@ public class MediaCodecDecoderRenderer extends EnhancedDecoderRenderer {
int inputIndex = dequeueInputBuffer(true, true);
ByteBuffer inputBuffer = getEmptyInputBuffer(inputIndex);
inputBuffer.clear();
// Write the Annex B header
inputBuffer.put(new byte[]{0x00, 0x00, 0x00, 0x01, 0x67});