movenc: Set the last packet duration based on the next packet when autoflushing