final VideoFormat videoFormat = (VideoFormat) format;
if (videoFormat.getSize() == null)
return null; // must set a size.
// TODO: check VideoFormat and compatibility
bufferToImage = new BufferToImage(videoFormat);
format = super.setInputFormat(format);
updatePassthrough();
return format;
}