Simplify, increase robustness in case a new sample format is added.
Attach a file by drag & drop or click to upload