mov: Refactor codec specific final steps in mov_finalize_stsd_codec