avformat/utils: Do not overwrite, but use sample_fmt from context