audioStreamChunk.setCodecData (codecSpecificData);
} else if (GUID.GUID_VIDEOSTREAM.equals(streamTypeGUID)) {
/*
* Reading video specific information
*/
VideoStreamChunk videoStreamChunk = new VideoStreamChunk(
chunkStart, chunkLength);
result = videoStreamChunk;
long pictureWidth = Utils.readUINT32(raf);
long pictureHeight = Utils.readUINT32(raf);
// Skipt unknown field
raf.skipBytes(1);
/*
* Now read the format specific data
*/
// Size of the data section
Utils.readUINT16(raf);
raf.skipBytes(16);
byte[] fourCC = new byte[4];
raf.read(fourCC);
videoStreamChunk.setPictureWidth(pictureWidth);
videoStreamChunk.setPictureHeight(pictureHeight);
videoStreamChunk.setCodecId(fourCC);
}
/*
* Setting common values for audio and video
*/