add support for multiple formats to SampleBuffer