}
MP4Packet inFrame;
int totalFrames = (int) inTrack.getFrameCount();
long start = System.currentTimeMillis();
for (int i = 0; (inFrame = (MP4Packet) inTrack.nextFrame()) != null; i++) {
<BUG>Picture dec = decoder.decodeFrame(inFrame.getData(), target1.getData());
</BUG>
if (target2 == null) {
<BUG>target2 = Picture.create(dec.getWidth(), dec.getHeight(), ColorSpace.YUV420);
</BUG>
}

}
MP4Packet inFrame;
int totalFrames = (int) inTrack.getFrameCount();
long start = System.currentTimeMillis();
for (int i = 0; (inFrame = (MP4Packet) inTrack.nextFrame()) != null; i++) {
Picture8Bit dec = decoder.decodeFrame8Bit(inFrame.getData(), target1.getData());
if (target2 == null) {
target2 = Picture8Bit.create(dec.getWidth(), dec.getHeight(), ColorSpace.YUV420);
}
