matroska: Factor out mkv_write_cue_entry
matroska: Move codec-specific functions in a stand-alone file