out = mkout.getOutputStream();
if (modifier != null && modifier.isH264AnnexB()) {
in = new H264AnnexBInputStream(in, modifier.getHeader());
} else if (modifier != null && modifier.isEncodedAudioPassthrough()) {
out = new IEC61937AudioOutputStream(new PCMAudioOutputStream(out, modifier.getNbChannels(), modifier.getSampleFrequency(), modifier.getBitsPerSample()));
} else if (modifier != null && modifier.isDtsEmbed()) {
out = new DTSAudioOutputStream(new PCMAudioOutputStream(out, modifier.getNbChannels(), modifier.getSampleFrequency(), modifier.getBitsPerSample()));
} else if (modifier != null && modifier.isPcm()) {
out = new PCMAudioOutputStream(out, modifier.getNbChannels(), modifier.getSampleFrequency(), modifier.getBitsPerSample());
}
if (modifier != null && modifier.getHeader() != null && !modifier.isH264AnnexB()) {
out.write(modifier.getHeader());
}