write: Add missing QT_CODEC_TYPE_ALAC_AUDIO support.
ISOM_CODEC_TYPE_AVC2_VIDEO is remuxable.
Fix some memory leaks.