mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Removed commented code.
This commit is contained in:
parent
3886f5f0b6
commit
ac96a2be65
4 changed files with 0 additions and 5 deletions
|
|
@ -92,7 +92,6 @@ public class AvcChunkHandler extends NalChunkHandler {
|
||||||
//We skip IDR in the switch
|
//We skip IDR in the switch
|
||||||
if (spsData.picOrderCountType == 0) {
|
if (spsData.picOrderCountType == 0) {
|
||||||
int picOrderCountLsb = in.readBits(spsData.picOrderCntLsbLength);
|
int picOrderCountLsb = in.readBits(spsData.picOrderCntLsbLength);
|
||||||
//Log.d("Test", "FrameNum: " + frame + " cnt=" + picOrderCountLsb);
|
|
||||||
picCountClock.setPicCount(picOrderCountLsb);
|
picCountClock.setPicCount(picOrderCountLsb);
|
||||||
return;
|
return;
|
||||||
} else if (spsData.picOrderCountType == 2) {
|
} else if (spsData.picOrderCountType == 2) {
|
||||||
|
|
|
||||||
|
|
@ -95,8 +95,6 @@ public class AviSeekMap implements SeekMap {
|
||||||
} else {
|
} else {
|
||||||
return new SeekPoints(getSeekPoint(firstSeekIndex));
|
return new SeekPoints(getSeekPoint(firstSeekIndex));
|
||||||
}
|
}
|
||||||
|
|
||||||
//Log.d(AviExtractor.TAG, "SeekPoint: us=" + outUs + " pos=" + position);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,6 @@ public class ChunkHandler {
|
||||||
trackOutput.sampleMetadata(
|
trackOutput.sampleMetadata(
|
||||||
clock.getUs(), (isKeyFrame() ? C.BUFFER_FLAG_KEY_FRAME : 0), size, 0, null);
|
clock.getUs(), (isKeyFrame() ? C.BUFFER_FLAG_KEY_FRAME : 0), size, 0, null);
|
||||||
}
|
}
|
||||||
//Log.d(AviExtractor.TAG, "Frame: " + (isVideo()? 'V' : 'A') + " us=" + clock.getUs() + " size=" + size + " frame=" + clock.getIndex() + " key=" + isKeyFrame());
|
|
||||||
clock.advance();
|
clock.advance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,6 @@ public class MpegAudioChunkHandler extends ChunkHandler {
|
||||||
frameRemaining -= bytes;
|
frameRemaining -= bytes;
|
||||||
if (frameRemaining == 0) {
|
if (frameRemaining == 0) {
|
||||||
trackOutput.sampleMetadata(timeUs, C.BUFFER_FLAG_KEY_FRAME, header.frameSize, 0, null);
|
trackOutput.sampleMetadata(timeUs, C.BUFFER_FLAG_KEY_FRAME, header.frameSize, 0, null);
|
||||||
//Log.d(AviExtractor.TAG, "MP3: us=" + us);
|
|
||||||
timeUs += header.samplesPerFrame * C.MICROS_PER_SECOND / samplesPerSecond;
|
timeUs += header.samplesPerFrame * C.MICROS_PER_SECOND / samplesPerSecond;
|
||||||
}
|
}
|
||||||
chunkRemaining -= bytes;
|
chunkRemaining -= bytes;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue