fix assertion failure when writing mov files